#5E1790#5E1790
#5E1790 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.181 H 305.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #5E1790 |
|---|---|
| RGB | rgb(94, 23, 144) |
| HSL | hsl(275, 72%, 33%) |
| HSV | hsv(275, 84%, 56%) |
| CMYK | cmyk(34.7%, 84%, 0%, 43.5%) |
| CIE-LAB | lab(26.75, 51.41, -51.66) |
| CIE-LCH | lch(26.75, 72.89, 314.86°) |
| OKLab | oklab(39.22% 0.1056 -0.1472) |
| OKLCH | oklch(39.22% 0.181 305.7) |
| XYZ | xyz(9.9554, 5.0062, 26.8220) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.56
Rebeccapurple
#663399
ΔE00 5.45
Purple (survey)
#7E1E9C
ΔE00 6.20
Royal Purple (survey)
#4B006E
ΔE00 6.46
Indigo (survey)
#380282
ΔE00 7.02
Indigo Blue
#3A18B1
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E1790 #499017
analogous
#221790 #5E1790 #901785
triadic
#5E1790 #905E17 #17905E
tetradic
#5E1790 #902217 #499017 #178590
square
#5E1790 #902217 #499017 #178590
split-complementary
#5E1790 #859017 #179022
monochromatic
#190626 #3C0F5B #5E1790 #801FC5 #9F41E1
Accessibility & contrast
On white
10.49
#5E1790 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#5E1790 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E1790
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E1790 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E1790 | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #5e1790; /* rgb */ color: rgb(94, 23, 144); /* oklch */ color: oklch(39.2% 0.181 305.7);
Tailwind
colors: {
custom: {
50: '#915fb1',
500: '#5e1790',
950: '#000000',
},
}SCSS
$custom: #5e1790; $custom-light: #915fb1; $custom-dark: #000000;
JSON
{
"hex": "#5e1790",
"rgb": {
"r": 94,
"g": 23,
"b": 144
},
"hsl": {
"h": 275.207,
"s": 72.455,
"l": 32.745
},
"oklch": {
"l": 0.39215,
"c": 0.18122,
"h": 305.7
},
"luminance": 0.05006
}Semantic roles & 50–950 ramp
primary
#5E1790
secondary
#76C142
accent
#EF3984
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980