#5C156F#5C156F
#5C156F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.151 H 317.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #5C156F |
|---|---|
| RGB | rgb(92, 21, 111) |
| HSL | hsl(287, 68%, 26%) |
| HSV | hsv(287, 81%, 44%) |
| CMYK | cmyk(17.1%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(23.54, 44.52, -36.04) |
| CIE-LCH | lch(23.54, 57.28, 321.01°) |
| OKLab | oklab(36.07% 0.1123 -0.1014) |
| OKLCH | oklch(36.07% 0.151 317.9) |
| XYZ | xyz(7.5506, 3.9597, 15.4024) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.60
Darkish Purple
#751973
ΔE00 5.42
Plum Purple
#4E0550
ΔE00 6.09
Indigo
#4B0082
ΔE00 6.48
Purple
#800080
ΔE00 6.75
Grape Purple
#5D1451
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C156F #286F15
analogous
#2F156F #5C156F #6F1555
triadic
#5C156F #6F5C15 #156F5C
tetradic
#5C156F #6F2F15 #286F15 #15556F
square
#5C156F #6F2F15 #286F15 #15556F
split-complementary
#5C156F #556F15 #156F2F
monochromatic
#15051A #310B3C #5C156F #871FA2 #B128D6
Accessibility & contrast
On white
11.72
#5C156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#5C156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C156F
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C156F | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#193A6D
Tritanopia (blue-blind)
#5B2942
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #5c156f; /* rgb */ color: rgb(92, 21, 111); /* oklch */ color: oklch(36.1% 0.151 317.9);
Tailwind
colors: {
custom: {
50: '#8e5c99',
500: '#5c156f',
950: '#000000',
},
}SCSS
$custom: #5c156f; $custom-light: #8e5c99; $custom-dark: #000000;
JSON
{
"hex": "#5c156f",
"rgb": {
"r": 92,
"g": 21,
"b": 111
},
"hsl": {
"h": 287.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.36069,
"c": 0.1513,
"h": 317.9
},
"luminance": 0.03959
}Semantic roles & 50–950 ramp
primary
#5C156F
secondary
#51A53A
accent
#EB3D62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E