#5E2398#5E2398
#5E2398 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.178 H 301.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2398 |
|---|---|
| RGB | rgb(94, 35, 152) |
| HSL | hsl(270, 63%, 37%) |
| HSV | hsv(270, 77%, 60%) |
| CMYK | cmyk(38.2%, 77%, 0%, 40.4%) |
| CIE-LAB | lab(29.03, 48.71, -52.88) |
| CIE-LCH | lch(29.03, 71.89, 312.65°) |
| OKLab | oklab(41.02% 0.0936 -0.1509) |
| OKLCH | oklch(41.02% 0.178 301.8) |
| XYZ | xyz(10.8833, 5.8487, 30.2552) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.63
Purple (survey)
#7E1E9C
ΔE00 5.97
Indigo
#4B0082
ΔE00 6.33
Indigo Blue
#3A18B1
ΔE00 6.88
Violet Blue
#510AC9
ΔE00 7.37
Purple Blue
#5D21D0
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2398 #5D9823
analogous
#232398 #5E2398 #982398
triadic
#5E2398 #985E23 #23985E
tetradic
#5E2398 #982323 #5D9823 #239898
square
#5E2398 #982323 #5D9823 #239898
split-complementary
#5E2398 #989823 #239823
monochromatic
#200C35 #3F1866 #5E2398 #7D2ECA #9B5CD9
Accessibility & contrast
On white
9.68
#5E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#5E2398 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2398
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2398 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2398 | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#51415C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5e2398; /* rgb */ color: rgb(94, 35, 152); /* oklch */ color: oklch(41.0% 0.178 301.8);
Tailwind
colors: {
custom: {
50: '#9164b7',
500: '#5e2398',
950: '#000000',
},
}SCSS
$custom: #5e2398; $custom-light: #9164b7; $custom-dark: #000000;
JSON
{
"hex": "#5e2398",
"rgb": {
"r": 94,
"g": 35,
"b": 152
},
"hsl": {
"h": 270.256,
"s": 62.567,
"l": 36.667
},
"oklch": {
"l": 0.41016,
"c": 0.17755,
"h": 301.8
},
"luminance": 0.05849
}Semantic roles & 50–950 ramp
primary
#5E2398
secondary
#8BBE59
accent
#E64293
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80