#5C159E#5C159E
#5C159E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.196 H 300.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #5C159E |
|---|---|
| RGB | rgb(92, 21, 158) |
| HSL | hsl(271, 77%, 35%) |
| HSV | hsv(271, 87%, 62%) |
| CMYK | cmyk(41.8%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(27.52, 54.98, -59.02) |
| CIE-LCH | lch(27.52, 80.67, 312.97°) |
| OKLab | oklab(40.07% 0.0991 -0.1689) |
| OKLCH | oklch(40.07% 0.196 300.4) |
| XYZ | xyz(10.8518, 5.2802, 32.7886) |
| Luminance | 0.0528 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.37
Indigo Blue
#3A18B1
ΔE00 5.62
Rebeccapurple
#663399
ΔE00 5.76
Violet Blue
#510AC9
ΔE00 6.00
Purple (survey)
#7E1E9C
ΔE00 6.84
Indigo (survey)
#380282
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C159E #579E15
analogous
#18159E #5C159E #9E159B
triadic
#5C159E #9E5C15 #159E5C
tetradic
#5C159E #9E1815 #579E15 #159B9E
square
#5C159E #9E1815 #579E15 #159B9E
split-complementary
#5C159E #9B9E15 #159E18
monochromatic
#1D0732 #3D0E68 #5C159E #7B1CD4 #9A47E7
Accessibility & contrast
On white
10.21
#5C159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#5C159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C159E
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C159E | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5c159e; /* rgb */ color: rgb(92, 21, 158); /* oklch */ color: oklch(40.1% 0.196 300.4);
Tailwind
colors: {
custom: {
50: '#915fbc',
500: '#5c159e',
950: '#000000',
},
}SCSS
$custom: #5c159e; $custom-light: #915fbc; $custom-dark: #000000;
JSON
{
"hex": "#5c159e",
"rgb": {
"r": 92,
"g": 21,
"b": 158
},
"hsl": {
"h": 271.095,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.40073,
"c": 0.19585,
"h": 300.4
},
"luminance": 0.0528
}Semantic roles & 50–950 ramp
primary
#5C159E
secondary
#85C747
accent
#F33590
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981