#5D159E#5D159E
#5D159E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.196 H 300.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).
Color values
| HEX | #5D159E |
|---|---|
| RGB | rgb(93, 21, 158) |
| HSL | hsl(272, 77%, 35%) |
| HSV | hsv(272, 87%, 62%) |
| CMYK | cmyk(41.1%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(27.66, 55.12, -58.79) |
| CIE-LCH | lch(27.66, 80.58, 313.16°) |
| OKLab | oklab(40.2% 0.1007 -0.1682) |
| OKLCH | oklch(40.2% 0.196 300.9) |
| XYZ | xyz(10.9524, 5.3320, 32.7933) |
| Luminance | 0.0533 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.44
Rebeccapurple
#663399
ΔE00 5.67
Indigo Blue
#3A18B1
ΔE00 5.77
Violet Blue
#510AC9
ΔE00 6.06
Purple (survey)
#7E1E9C
ΔE00 6.67
Indigo (survey)
#380282
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D159E #569E15
analogous
#19159E #5D159E #9E159A
triadic
#5D159E #9E5D15 #159E5D
tetradic
#5D159E #9E1915 #569E15 #159A9E
square
#5D159E #9E1915 #569E15 #159A9E
split-complementary
#5D159E #9A9E15 #159E19
monochromatic
#1D0732 #3D0E68 #5D159E #7D1CD4 #9B47E7
Accessibility & contrast
On white
10.16
#5D159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#5D159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D159E
10.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D159E | 1.00 | 10.16 | 2.07 | 10.16 |
| #FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4E3E5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5d159e; /* rgb */ color: rgb(93, 21, 158); /* oklch */ color: oklch(40.2% 0.196 300.9);
Tailwind
colors: {
custom: {
50: '#925fbc',
500: '#5d159e',
950: '#000000',
},
}SCSS
$custom: #5d159e; $custom-light: #925fbc; $custom-dark: #000000;
JSON
{
"hex": "#5d159e",
"rgb": {
"r": 93,
"g": 21,
"b": 158
},
"hsl": {
"h": 271.533,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.402,
"c": 0.196,
"h": 300.9
},
"luminance": 0.05332
}Semantic roles & 50–950 ramp
primary
#5D159E
secondary
#84C747
accent
#F3358F
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981