#5F2199#5F2199
#5F2199 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.181 H 302.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2199 |
|---|---|
| RGB | rgb(95, 33, 153) |
| HSL | hsl(271, 65%, 36%) |
| HSV | hsv(271, 78%, 60%) |
| CMYK | cmyk(37.9%, 78.4%, 0%, 40%) |
| CIE-LAB | lab(28.95, 49.98, -53.60) |
| CIE-LCH | lch(28.95, 73.28, 313.00°) |
| OKLab | oklab(41.02% 0.0966 -0.153) |
| OKLCH | oklch(41.02% 0.181 302.3) |
| XYZ | xyz(11.0116, 5.8205, 30.6742) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.87
Purple (survey)
#7E1E9C
ΔE00 5.82
Indigo
#4B0082
ΔE00 6.23
Indigo Blue
#3A18B1
ΔE00 6.83
Violet Blue
#510AC9
ΔE00 7.20
Purple Blue
#5D21D0
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2199 #5B9921
analogous
#232199 #5F2199 #992197
triadic
#5F2199 #995F21 #21995F
tetradic
#5F2199 #992321 #5B9921 #219799
square
#5F2199 #992321 #5B9921 #219799
split-complementary
#5F2199 #979921 #219923
monochromatic
#200B34 #401667 #5F2199 #7E2CCB #9C59DB
Accessibility & contrast
On white
9.70
#5F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5F2199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2199
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2199 | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#53415C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5f2199; /* rgb */ color: rgb(95, 33, 153); /* oklch */ color: oklch(41.0% 0.181 302.3);
Tailwind
colors: {
custom: {
50: '#9264b8',
500: '#5f2199',
950: '#000000',
},
}SCSS
$custom: #5f2199; $custom-light: #9264b8; $custom-dark: #000000;
JSON
{
"hex": "#5f2199",
"rgb": {
"r": 95,
"g": 33,
"b": 153
},
"hsl": {
"h": 271,
"s": 64.516,
"l": 36.471
},
"oklch": {
"l": 0.41021,
"c": 0.18091,
"h": 302.3
},
"luminance": 0.05821
}Semantic roles & 50–950 ramp
primary
#5F2199
secondary
#89BF56
accent
#E84091
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80