#5F1F99#5F1F99
#5F1F99 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.183 H 302.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1F99 |
|---|---|
| RGB | rgb(95, 31, 153) |
| HSL | hsl(271, 66%, 36%) |
| HSV | hsv(271, 80%, 60%) |
| CMYK | cmyk(37.9%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(28.68, 50.78, -54.06) |
| CIE-LCH | lch(28.68, 74.17, 313.21°) |
| OKLab | oklab(40.83% 0.0983 -0.1543) |
| OKLCH | oklch(40.83% 0.183 302.5) |
| XYZ | xyz(10.9577, 5.7127, 30.6562) |
| Luminance | 0.0571 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.17
Purple (survey)
#7E1E9C
ΔE00 5.86
Indigo
#4B0082
ΔE00 6.00
Indigo Blue
#3A18B1
ΔE00 6.75
Violet Blue
#510AC9
ΔE00 7.12
Purple Blue
#5D21D0
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1F99 #59991F
analogous
#221F99 #5F1F99 #991F96
triadic
#5F1F99 #995F1F #1F995F
tetradic
#5F1F99 #99221F #59991F #1F9699
square
#5F1F99 #99221F #59991F #1F9699
split-complementary
#5F1F99 #96991F #1F9922
monochromatic
#200A33 #3F1566 #5F1F99 #7F29CC #9D56DD
Accessibility & contrast
On white
9.80
#5F1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5F1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1F99
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1F99 | 1.00 | 9.80 | 2.14 | 9.80 |
| #FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#53405C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f1f99; /* rgb */ color: rgb(95, 31, 153); /* oklch */ color: oklch(40.8% 0.183 302.5);
Tailwind
colors: {
custom: {
50: '#9263b8',
500: '#5f1f99',
950: '#000000',
},
}SCSS
$custom: #5f1f99; $custom-light: #9263b8; $custom-dark: #000000;
JSON
{
"hex": "#5f1f99",
"rgb": {
"r": 95,
"g": 31,
"b": 153
},
"hsl": {
"h": 271.475,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.40826,
"c": 0.18293,
"h": 302.5
},
"luminance": 0.05713
}Semantic roles & 50–950 ramp
primary
#5F1F99
secondary
#87C054
accent
#E93F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80