#5C158C#5C158C
#5C158C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.179 H 306.1°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #5C158C |
|---|---|
| RGB | rgb(92, 21, 140) |
| HSL | hsl(276, 74%, 32%) |
| HSV | hsv(276, 85%, 55%) |
| CMYK | cmyk(34.3%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(25.88, 50.83, -50.62) |
| CIE-LCH | lch(25.88, 71.74, 315.12°) |
| OKLab | oklab(38.44% 0.1053 -0.1442) |
| OKLCH | oklch(38.44% 0.179 306.1) |
| XYZ | xyz(9.4144, 4.7052, 25.2181) |
| Luminance | 0.0471 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.98
Royal Purple (survey)
#4B006E
ΔE00 5.73
Rebeccapurple
#663399
ΔE00 5.98
Indigo (survey)
#380282
ΔE00 6.57
Purple (survey)
#7E1E9C
ΔE00 6.68
Indigo Blue
#3A18B1
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C158C #458C15
analogous
#20158C #5C158C #8C1581
triadic
#5C158C #8C5C15 #158C5C
tetradic
#5C158C #8C2015 #458C15 #15818C
square
#5C158C #8C2015 #458C15 #15818C
split-complementary
#5C158C #818C15 #158C20
monochromatic
#160522 #390D57 #5C158C #7F1DC1 #9E3AE1
Accessibility & contrast
On white
10.82
#5C158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#5C158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C158C
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C158C | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#533652
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #5c158c; /* rgb */ color: rgb(92, 21, 140); /* oklch */ color: oklch(38.4% 0.179 306.1);
Tailwind
colors: {
custom: {
50: '#905daf',
500: '#5c158c',
950: '#000000',
},
}SCSS
$custom: #5c158c; $custom-light: #905daf; $custom-dark: #000000;
JSON
{
"hex": "#5c158c",
"rgb": {
"r": 92,
"g": 21,
"b": 140
},
"hsl": {
"h": 275.798,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.38438,
"c": 0.17861,
"h": 306.1
},
"luminance": 0.04705
}Semantic roles & 50–950 ramp
primary
#5C158C
secondary
#72C03D
accent
#F13782
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F