#5D158C#5D158C
#5D158C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.179 H 306.7°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5D158C |
|---|---|
| RGB | rgb(93, 21, 140) |
| HSL | hsl(276, 74%, 32%) |
| HSV | hsv(276, 85%, 55%) |
| CMYK | cmyk(33.6%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(26.03, 51.00, -50.36) |
| CIE-LCH | lch(26.03, 71.67, 315.36°) |
| OKLab | oklab(38.58% 0.1068 -0.1434) |
| OKLCH | oklch(38.58% 0.179 306.7) |
| XYZ | xyz(9.5150, 4.7570, 25.2228) |
| Luminance | 0.0476 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.12
Royal Purple (survey)
#4B006E
ΔE00 5.80
Rebeccapurple
#663399
ΔE00 5.91
Purple (survey)
#7E1E9C
ΔE00 6.51
Indigo (survey)
#380282
ΔE00 6.75
Indigo Blue
#3A18B1
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D158C #448C15
analogous
#22158C #5D158C #8C1580
triadic
#5D158C #8C5D15 #158C5D
tetradic
#5D158C #8C2215 #448C15 #15808C
square
#5D158C #8C2215 #448C15 #15808C
split-complementary
#5D158C #808C15 #158C22
monochromatic
#160522 #3A0D57 #5D158C #801DC1 #9F3AE1
Accessibility & contrast
On white
10.76
#5D158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#5D158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D158C
10.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D158C | 1.00 | 10.76 | 1.95 | 10.76 |
| #FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#553652
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #5d158c; /* rgb */ color: rgb(93, 21, 140); /* oklch */ color: oklch(38.6% 0.179 306.7);
Tailwind
colors: {
custom: {
50: '#905eae',
500: '#5d158c',
950: '#000000',
},
}SCSS
$custom: #5d158c; $custom-light: #905eae; $custom-dark: #000000;
JSON
{
"hex": "#5d158c",
"rgb": {
"r": 93,
"g": 21,
"b": 140
},
"hsl": {
"h": 276.303,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.38576,
"c": 0.17885,
"h": 306.7
},
"luminance": 0.04757
}Semantic roles & 50–950 ramp
primary
#5D158C
secondary
#71C03D
accent
#F13780
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F