#5C158F#5C158F
#5C158F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.181 H 305.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5C158F |
|---|---|
| RGB | rgb(92, 21, 143) |
| HSL | hsl(275, 74%, 32%) |
| HSV | hsv(275, 85%, 56%) |
| CMYK | cmyk(35.7%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(26.14, 51.52, -52.05) |
| CIE-LCH | lch(26.14, 73.24, 314.70°) |
| OKLab | oklab(38.7% 0.1044 -0.1484) |
| OKLCH | oklch(38.7% 0.181 305.1) |
| XYZ | xyz(9.6386, 4.7949, 26.3990) |
| Luminance | 0.0479 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.09
Rebeccapurple
#663399
ΔE00 5.85
Royal Purple (survey)
#4B006E
ΔE00 6.11
Indigo (survey)
#380282
ΔE00 6.56
Purple (survey)
#7E1E9C
ΔE00 6.64
Indigo Blue
#3A18B1
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C158F #488F15
analogous
#1F158F #5C158F #8F1585
triadic
#5C158F #8F5C15 #158F5C
tetradic
#5C158F #8F1F15 #488F15 #15858F
square
#5C158F #8F1F15 #488F15 #15858F
split-complementary
#5C158F #858F15 #158F1F
monochromatic
#170524 #3A0D5A #5C158F #7E1DC4 #9D3CE2
Accessibility & contrast
On white
10.72
#5C158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#5C158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C158F
10.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C158F | 1.00 | 10.72 | 1.96 | 10.72 |
| #FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #5c158f; /* rgb */ color: rgb(92, 21, 143); /* oklch */ color: oklch(38.7% 0.181 305.1);
Tailwind
colors: {
custom: {
50: '#905eb1',
500: '#5c158f',
950: '#000000',
},
}SCSS
$custom: #5c158f; $custom-light: #905eb1; $custom-dark: #000000;
JSON
{
"hex": "#5c158f",
"rgb": {
"r": 92,
"g": 21,
"b": 143
},
"hsl": {
"h": 274.918,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.38703,
"c": 0.18147,
"h": 305.1
},
"luminance": 0.04795
}Semantic roles & 50–950 ramp
primary
#5C158F
secondary
#75C23E
accent
#F13785
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980