#5F1B9E#5F1B9E
#5F1B9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.192 H 301.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1B9E |
|---|---|
| RGB | rgb(95, 27, 158) |
| HSL | hsl(271, 71%, 36%) |
| HSV | hsv(271, 83%, 62%) |
| CMYK | cmyk(39.9%, 82.9%, 0%, 38%) |
| CIE-LAB | lab(28.60, 53.46, -57.23) |
| CIE-LCH | lch(28.60, 78.31, 313.05°) |
| OKLab | oklab(40.91% 0.0998 -0.1636) |
| OKLCH | oklch(40.91% 0.192 301.4) |
| XYZ | xyz(11.2813, 5.6853, 32.8442) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.82
Indigo
#4B0082
ΔE00 6.04
Purple (survey)
#7E1E9C
ΔE00 6.13
Indigo Blue
#3A18B1
ΔE00 6.14
Violet Blue
#510AC9
ΔE00 6.27
Purple Blue
#5D21D0
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1B9E #5A9E1B
analogous
#1E1B9E #5F1B9E #9E1B9C
triadic
#5F1B9E #9E5F1B #1B9E5F
tetradic
#5F1B9E #9E1E1B #5A9E1B #1B9C9E
square
#5F1B9E #9E1E1B #5A9E1B #1B9C9E
split-complementary
#5F1B9E #9C9E1B #1B9E1E
monochromatic
#200935 #40126A #5F1B9E #7E24D2 #9C52E1
Accessibility & contrast
On white
9.83
#5F1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5F1B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1B9E
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1B9E | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#51405E
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5f1b9e; /* rgb */ color: rgb(95, 27, 158); /* oklch */ color: oklch(40.9% 0.192 301.4);
Tailwind
colors: {
custom: {
50: '#9361bc',
500: '#5f1b9e',
950: '#000000',
},
}SCSS
$custom: #5f1b9e; $custom-light: #9361bc; $custom-dark: #000000;
JSON
{
"hex": "#5f1b9e",
"rgb": {
"r": 95,
"g": 27,
"b": 158
},
"hsl": {
"h": 271.145,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.40912,
"c": 0.19163,
"h": 301.4
},
"luminance": 0.05685
}Semantic roles & 50–950 ramp
primary
#5F1B9E
secondary
#88C451
accent
#EE3A90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81