#5E2899#5E2899
#5E2899 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 300.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5E2899 |
|---|---|
| RGB | rgb(94, 40, 153) |
| HSL | hsl(269, 59%, 38%) |
| HSV | hsv(269, 74%, 60%) |
| CMYK | cmyk(38.6%, 73.9%, 0%, 40%) |
| CIE-LAB | lab(29.90, 46.70, -52.06) |
| CIE-LCH | lch(29.90, 69.94, 311.90°) |
| OKLab | oklab(41.66% 0.0886 -0.1485) |
| OKLCH | oklch(41.66% 0.173 300.8) |
| XYZ | xyz(11.1232, 6.1971, 30.7410) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.85
Purple (survey)
#7E1E9C
ΔE00 6.06
Indigo Blue
#3A18B1
ΔE00 7.09
Indigo
#4B0082
ΔE00 7.12
Violet Blue
#510AC9
ΔE00 7.55
Purple Blue
#5D21D0
ΔE00 7.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E2899 #639928
analogous
#282A99 #5E2899 #972899
triadic
#5E2899 #995E28 #28995E
tetradic
#5E2899 #99282A #639928 #289997
square
#5E2899 #99282A #639928 #289997
split-complementary
#5E2899 #999728 #2A9928
monochromatic
#220F38 #401B68 #5E2899 #7C35CA #9B65D7
Accessibility & contrast
On white
9.38
#5E2899 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#5E2899 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E2899
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E2899 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E2899 | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#51445E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5e2899; /* rgb */ color: rgb(94, 40, 153); /* oklch */ color: oklch(41.7% 0.173 300.8);
Tailwind
colors: {
custom: {
50: '#9167b8',
500: '#5e2899',
950: '#000000',
},
}SCSS
$custom: #5e2899; $custom-light: #9167b8; $custom-dark: #000000;
JSON
{
"hex": "#5e2899",
"rgb": {
"r": 94,
"g": 40,
"b": 153
},
"hsl": {
"h": 268.673,
"s": 58.549,
"l": 37.843
},
"oklch": {
"l": 0.4166,
"c": 0.17294,
"h": 300.8
},
"luminance": 0.06197
}Semantic roles & 50–950 ramp
primary
#5E2899
secondary
#90BD60
accent
#E24697
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80