#5F1BAD Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #5f1bad graphic
This deep violet #5f1bad carries a serious, mysterious tone ideal for dark mode interfaces or bold brand accents. Because white text creates a high 9.3:1 contrast against this hex code, small UI elements remain perfectly legible. Use this shade as a secondary accent to ground a palette, as its heavy saturation can overwhelm designs if used across too large an area.

Questions about #5f1bad

What is #5f1bad in RGB, HSL and CMYK?
In RGB, #5f1bad is rgb(95, 27, 173), in HSL hsl(268, 73%, 39%) and in CMYK 45%, 84%, 0%, 32%. Browse more shades of purple with names and hex codes.
How should I use #5f1bad effectively in UI design?
This deep violet works best as a secondary accent color to ground a palette rather than as a primary background. Its heavy saturation can overwhelm designs if used across large areas, so pair it with white text to maintain a high 9.3:1 contrast ratio.
Is #5f1bad readable on white or black?
#5f1bad has a 9.34:1 contrast ratio on white and 2.24:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.