#5E1F99#5E1F99
#5E1F99 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.183 H 302.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #5E1F99 |
|---|---|
| RGB | rgb(94, 31, 153) |
| HSL | hsl(271, 66%, 36%) |
| HSV | hsv(271, 80%, 60%) |
| CMYK | cmyk(38.6%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(28.54, 50.61, -54.29) |
| CIE-LCH | lch(28.54, 74.22, 312.99°) |
| OKLab | oklab(40.7% 0.0968 -0.155) |
| OKLCH | oklch(40.7% 0.183 302) |
| XYZ | xyz(10.8545, 5.6595, 30.6514) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.25
Indigo
#4B0082
ΔE00 5.91
Purple (survey)
#7E1E9C
ΔE00 6.04
Indigo Blue
#3A18B1
ΔE00 6.60
Violet Blue
#510AC9
ΔE00 7.05
Purple Blue
#5D21D0
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E1F99 #5A991F
analogous
#211F99 #5E1F99 #991F97
triadic
#5E1F99 #995E1F #1F995E
tetradic
#5E1F99 #99211F #5A991F #1F9799
square
#5E1F99 #99211F #5A991F #1F9799
split-complementary
#5E1F99 #97991F #1F9921
monochromatic
#1F0A33 #3F1566 #5E1F99 #7D29CC #9B56DD
Accessibility & contrast
On white
9.85
#5E1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#5E1F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E1F99
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E1F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E1F99 | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#51405C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5e1f99; /* rgb */ color: rgb(94, 31, 153); /* oklch */ color: oklch(40.7% 0.183 302.0);
Tailwind
colors: {
custom: {
50: '#9263b8',
500: '#5e1f99',
950: '#000000',
},
}SCSS
$custom: #5e1f99; $custom-light: #9263b8; $custom-dark: #000000;
JSON
{
"hex": "#5e1f99",
"rgb": {
"r": 94,
"g": 31,
"b": 153
},
"hsl": {
"h": 270.984,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.40699,
"c": 0.18274,
"h": 302
},
"luminance": 0.0566
}Semantic roles & 50–950 ramp
primary
#5E1F99
secondary
#88C054
accent
#E93F91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80