#5F17A1#5F17A1
#5F17A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.9% C 0.198 H 300.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5F17A1 |
|---|---|
| RGB | rgb(95, 23, 161) |
| HSL | hsl(271, 75%, 36%) |
| HSV | hsv(271, 86%, 63%) |
| CMYK | cmyk(41%, 85.7%, 0%, 36.9%) |
| CIE-LAB | lab(28.43, 55.48, -59.34) |
| CIE-LCH | lch(28.43, 81.24, 313.08°) |
| OKLab | oklab(40.88% 0.1015 -0.1697) |
| OKLCH | oklch(40.88% 0.198 300.9) |
| XYZ | xyz(11.4571, 5.6188, 34.1922) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.37
Violet Blue
#510AC9
ΔE00 5.78
Indigo Blue
#3A18B1
ΔE00 5.82
Indigo
#4B0082
ΔE00 6.05
Purple (survey)
#7E1E9C
ΔE00 6.37
Purple Blue
#5D21D0
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F17A1 #59A117
analogous
#1A17A1 #5F17A1 #A1179E
triadic
#5F17A1 #A15F17 #17A15F
tetradic
#5F17A1 #A11A17 #59A117 #179EA1
square
#5F17A1 #A11A17 #59A117 #179EA1
split-complementary
#5F17A1 #9EA117 #17A11A
monochromatic
#200836 #3F0F6B #5F17A1 #7F1FD7 #9D4DE6
Accessibility & contrast
On white
9.89
#5F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#5F17A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F17A1
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F17A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F17A1 | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#50405F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5f17a1; /* rgb */ color: rgb(95, 23, 161); /* oklch */ color: oklch(40.9% 0.198 300.9);
Tailwind
colors: {
custom: {
50: '#9460be',
500: '#5f17a1',
950: '#000000',
},
}SCSS
$custom: #5f17a1; $custom-light: #9460be; $custom-dark: #000000;
JSON
{
"hex": "#5f17a1",
"rgb": {
"r": 95,
"g": 23,
"b": 161
},
"hsl": {
"h": 271.304,
"s": 75,
"l": 36.078
},
"oklch": {
"l": 0.40875,
"c": 0.19775,
"h": 300.9
},
"luminance": 0.05619
}Semantic roles & 50–950 ramp
primary
#5F17A1
secondary
#87C74C
accent
#F23690
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81