#5E1F9B#5E1F9B
#5E1F9B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.185 H 301.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5E1F9B |
|---|---|
| RGB | rgb(94, 31, 155) |
| HSL | hsl(270, 67%, 36%) |
| HSV | hsv(270, 80%, 61%) |
| CMYK | cmyk(39.4%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(28.71, 51.10, -55.23) |
| CIE-LCH | lch(28.71, 75.24, 312.78°) |
| OKLab | oklab(40.87% 0.0962 -0.1578) |
| OKLCH | oklch(40.87% 0.185 301.4) |
| XYZ | xyz(11.0210, 5.7261, 31.5286) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.29
Indigo
#4B0082
ΔE00 6.07
Purple (survey)
#7E1E9C
ΔE00 6.10
Indigo Blue
#3A18B1
ΔE00 6.38
Violet Blue
#510AC9
ΔE00 6.75
Purple Blue
#5D21D0
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E1F9B #5C9B1F
analogous
#201F9B #5E1F9B #9B1F9A
triadic
#5E1F9B #9B5E1F #1F9B5E
tetradic
#5E1F9B #9B201F #5C9B1F #1F9A9B
square
#5E1F9B #9B201F #5C9B1F #1F9A9B
split-complementary
#5E1F9B #9A9B1F #1F9B20
monochromatic
#200B35 #3F1568 #5E1F9B #7D29CE #9B57DD
Accessibility & contrast
On white
9.79
#5E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5E1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5E1F9B
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E1F9B | 1.00 | 9.79 | 2.15 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#50415D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5e1f9b; /* rgb */ color: rgb(94, 31, 155); /* oklch */ color: oklch(40.9% 0.185 301.4);
Tailwind
colors: {
custom: {
50: '#9263b9',
500: '#5e1f9b',
950: '#000000',
},
}SCSS
$custom: #5e1f9b; $custom-light: #9263b9; $custom-dark: #000000;
JSON
{
"hex": "#5e1f9b",
"rgb": {
"r": 94,
"g": 31,
"b": 155
},
"hsl": {
"h": 270.484,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.40874,
"c": 0.18479,
"h": 301.4
},
"luminance": 0.05726
}Semantic roles & 50–950 ramp
primary
#5E1F9B
secondary
#8AC155
accent
#EA3E93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81