#5F1E9A#5F1E9A
#5F1E9A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.185 H 302.3°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1E9A |
|---|---|
| RGB | rgb(95, 30, 154) |
| HSL | hsl(271, 67%, 36%) |
| HSV | hsv(271, 81%, 60%) |
| CMYK | cmyk(38.3%, 80.5%, 0%, 39.6%) |
| CIE-LAB | lab(28.63, 51.41, -54.75) |
| CIE-LCH | lch(28.63, 75.10, 313.20°) |
| OKLab | oklab(40.82% 0.0988 -0.1563) |
| OKLCH | oklch(40.82% 0.185 302.3) |
| XYZ | xyz(11.0149, 5.6945, 31.0844) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.33
Purple (survey)
#7E1E9C
ΔE00 5.91
Indigo
#4B0082
ΔE00 5.97
Indigo Blue
#3A18B1
ΔE00 6.61
Violet Blue
#510AC9
ΔE00 6.94
Purple Blue
#5D21D0
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1E9A #599A1E
analogous
#211E9A #5F1E9A #9A1E97
triadic
#5F1E9A #9A5F1E #1E9A5F
tetradic
#5F1E9A #9A211E #599A1E #1E979A
square
#5F1E9A #9A211E #599A1E #1E979A
split-complementary
#5F1E9A #979A1E #1E9A21
monochromatic
#200A34 #3F1467 #5F1E9A #7F28CD #9D55DE
Accessibility & contrast
On white
9.82
#5F1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5F1E9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1E9A
9.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1E9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1E9A | 1.00 | 9.82 | 2.14 | 9.82 |
| #FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#52405C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5f1e9a; /* rgb */ color: rgb(95, 30, 154); /* oklch */ color: oklch(40.8% 0.185 302.3);
Tailwind
colors: {
custom: {
50: '#9262b9',
500: '#5f1e9a',
950: '#000000',
},
}SCSS
$custom: #5f1e9a; $custom-light: #9262b9; $custom-dark: #000000;
JSON
{
"hex": "#5f1e9a",
"rgb": {
"r": 95,
"g": 30,
"b": 154
},
"hsl": {
"h": 271.452,
"s": 67.391,
"l": 36.078
},
"oklch": {
"l": 0.40819,
"c": 0.18492,
"h": 302.3
},
"luminance": 0.05695
}Semantic roles & 50–950 ramp
primary
#5F1E9A
secondary
#87C153
accent
#EA3E90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81