#5D2199#5D2199
#5D2199 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.181 H 301.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #5D2199 |
|---|---|
| RGB | rgb(93, 33, 153) |
| HSL | hsl(270, 65%, 36%) |
| HSV | hsv(270, 78%, 60%) |
| CMYK | cmyk(39.2%, 78.4%, 0%, 40%) |
| CIE-LAB | lab(28.68, 49.63, -54.06) |
| CIE-LCH | lch(28.68, 73.39, 312.56°) |
| OKLab | oklab(40.77% 0.0936 -0.1544) |
| OKLCH | oklch(40.77% 0.181 301.2) |
| XYZ | xyz(10.8064, 5.7147, 30.6645) |
| Luminance | 0.0571 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.05
Indigo
#4B0082
ΔE00 6.06
Purple (survey)
#7E1E9C
ΔE00 6.19
Indigo Blue
#3A18B1
ΔE00 6.52
Violet Blue
#510AC9
ΔE00 7.05
Purple Blue
#5D21D0
ΔE00 7.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D2199 #5D9921
analogous
#212199 #5D2199 #992199
triadic
#5D2199 #995D21 #21995D
tetradic
#5D2199 #992121 #5D9921 #219999
square
#5D2199 #992121 #5D9921 #219999
split-complementary
#5D2199 #999921 #219921
monochromatic
#200B34 #3E1667 #5D2199 #7C2CCB #9A59DB
Accessibility & contrast
On white
9.80
#5D2199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5D2199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D2199
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D2199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D2199 | 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)
#50415C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5d2199; /* rgb */ color: rgb(93, 33, 153); /* oklch */ color: oklch(40.8% 0.181 301.2);
Tailwind
colors: {
custom: {
50: '#9163b8',
500: '#5d2199',
950: '#000000',
},
}SCSS
$custom: #5d2199; $custom-light: #9163b8; $custom-dark: #000000;
JSON
{
"hex": "#5d2199",
"rgb": {
"r": 93,
"g": 33,
"b": 153
},
"hsl": {
"h": 270,
"s": 64.516,
"l": 36.471
},
"oklch": {
"l": 0.4077,
"c": 0.18054,
"h": 301.2
},
"luminance": 0.05715
}Semantic roles & 50–950 ramp
primary
#5D2199
secondary
#8BBF56
accent
#E84094
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80