#5D219B#5D219B
#5D219B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.183 H 300.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5D219B |
|---|---|
| RGB | rgb(93, 33, 155) |
| HSL | hsl(270, 65%, 37%) |
| HSV | hsv(270, 79%, 61%) |
| CMYK | cmyk(40%, 78.7%, 0%, 39.2%) |
| CIE-LAB | lab(28.85, 50.13, -55.00) |
| CIE-LCH | lch(28.85, 74.42, 312.35°) |
| OKLab | oklab(40.95% 0.093 -0.1572) |
| OKLCH | oklch(40.95% 0.183 300.6) |
| XYZ | xyz(10.9730, 5.7813, 31.5418) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.09
Indigo
#4B0082
ΔE00 6.22
Purple (survey)
#7E1E9C
ΔE00 6.25
Indigo Blue
#3A18B1
ΔE00 6.30
Violet Blue
#510AC9
ΔE00 6.76
Purple Blue
#5D21D0
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D219B #5F9B21
analogous
#21229B #5D219B #9A219B
triadic
#5D219B #9B5D21 #219B5D
tetradic
#5D219B #9B2122 #5F9B21 #219B9A
square
#5D219B #9B2122 #5F9B21 #219B9A
split-complementary
#5D219B #9B9A21 #229B21
monochromatic
#200C36 #3F1669 #5D219B #7B2CCD #9A5ADC
Accessibility & contrast
On white
9.74
#5D219B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5D219B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D219B
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D219B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D219B | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4F425D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5d219b; /* rgb */ color: rgb(93, 33, 155); /* oklch */ color: oklch(40.9% 0.183 300.6);
Tailwind
colors: {
custom: {
50: '#9164b9',
500: '#5d219b',
950: '#000000',
},
}SCSS
$custom: #5d219b; $custom-light: #9164b9; $custom-dark: #000000;
JSON
{
"hex": "#5d219b",
"rgb": {
"r": 93,
"g": 33,
"b": 155
},
"hsl": {
"h": 269.508,
"s": 64.894,
"l": 36.863
},
"oklch": {
"l": 0.40945,
"c": 0.18264,
"h": 300.6
},
"luminance": 0.05781
}Semantic roles & 50–950 ramp
primary
#5D219B
secondary
#8DC058
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81