#5B159E#5B159E
#5B159E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.196 H 299.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5B159E |
|---|---|
| RGB | rgb(91, 21, 158) |
| HSL | hsl(271, 77%, 35%) |
| HSV | hsv(271, 87%, 62%) |
| CMYK | cmyk(42.4%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(27.38, 54.85, -59.26) |
| CIE-LCH | lch(27.38, 80.75, 312.79°) |
| OKLab | oklab(39.95% 0.0976 -0.1696) |
| OKLCH | oklch(39.95% 0.196 299.9) |
| XYZ | xyz(10.7525, 5.2290, 32.7839) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.30
Indigo Blue
#3A18B1
ΔE00 5.47
Rebeccapurple
#663399
ΔE00 5.85
Violet Blue
#510AC9
ΔE00 5.94
Indigo (survey)
#380282
ΔE00 6.99
Purple (survey)
#7E1E9C
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B159E #589E15
analogous
#17159E #5B159E #9E159C
triadic
#5B159E #9E5B15 #159E5B
tetradic
#5B159E #9E1715 #589E15 #159C9E
square
#5B159E #9E1715 #589E15 #159C9E
split-complementary
#5B159E #9C9E15 #159E17
monochromatic
#1D0732 #3C0E68 #5B159E #7A1CD4 #9847E7
Accessibility & contrast
On white
10.26
#5B159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#5B159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B159E
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B159E | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4B3F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5b159e; /* rgb */ color: rgb(91, 21, 158); /* oklch */ color: oklch(39.9% 0.196 299.9);
Tailwind
colors: {
custom: {
50: '#915fbc',
500: '#5b159e',
950: '#000000',
},
}SCSS
$custom: #5b159e; $custom-light: #915fbc; $custom-dark: #000000;
JSON
{
"hex": "#5b159e",
"rgb": {
"r": 91,
"g": 21,
"b": 158
},
"hsl": {
"h": 270.657,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.39946,
"c": 0.19569,
"h": 299.9
},
"luminance": 0.05229
}Semantic roles & 50–950 ramp
primary
#5B159E
secondary
#86C747
accent
#F33592
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981