#5D2398#5D2398
#5D2398 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.177 H 301.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5D2398 |
|---|---|
| RGB | rgb(93, 35, 152) |
| HSL | hsl(270, 63%, 37%) |
| HSV | hsv(270, 77%, 60%) |
| CMYK | cmyk(38.8%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(28.89, 48.53, -53.10) |
| CIE-LCH | lch(28.89, 71.94, 312.43°) |
| OKLab | oklab(40.89% 0.0921 -0.1516) |
| OKLCH | oklch(40.89% 0.177 301.3) |
| XYZ | xyz(10.7813, 5.7962, 30.2504) |
| Luminance | 0.0580 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.73
Purple (survey)
#7E1E9C
ΔE00 6.15
Indigo
#4B0082
ΔE00 6.25
Indigo Blue
#3A18B1
ΔE00 6.72
Violet Blue
#510AC9
ΔE00 7.30
Purple Blue
#5D21D0
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D2398 #5E9823
analogous
#232398 #5D2398 #982398
triadic
#5D2398 #985D23 #23985D
tetradic
#5D2398 #982323 #5E9823 #239898
square
#5D2398 #982323 #5E9823 #239898
split-complementary
#5D2398 #989823 #239823
monochromatic
#200C35 #3F1866 #5D2398 #7B2ECA #9A5CD9
Accessibility & contrast
On white
9.73
#5D2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5D2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D2398
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D2398 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#50415C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5d2398; /* rgb */ color: rgb(93, 35, 152); /* oklch */ color: oklch(40.9% 0.177 301.3);
Tailwind
colors: {
custom: {
50: '#9164b7',
500: '#5d2398',
950: '#000000',
},
}SCSS
$custom: #5d2398; $custom-light: #9164b7; $custom-dark: #000000;
JSON
{
"hex": "#5d2398",
"rgb": {
"r": 93,
"g": 35,
"b": 152
},
"hsl": {
"h": 269.744,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.40892,
"c": 0.17737,
"h": 301.3
},
"luminance": 0.05796
}Semantic roles & 50–950 ramp
primary
#5D2398
secondary
#8CBE59
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80