#5C166F#5C166F
#5C166F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.150 H 317.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #5C166F |
|---|---|
| RGB | rgb(92, 22, 111) |
| HSL | hsl(287, 67%, 26%) |
| HSV | hsv(287, 80%, 44%) |
| CMYK | cmyk(17.1%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(23.66, 44.16, -35.84) |
| CIE-LCH | lch(23.66, 56.87, 320.94°) |
| OKLab | oklab(36.16% 0.1114 -0.1008) |
| OKLCH | oklch(36.16% 0.15 317.8) |
| XYZ | xyz(7.5694, 3.9972, 15.4087) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.70
Darkish Purple
#751973
ΔE00 5.38
Plum Purple
#4E0550
ΔE00 6.13
Indigo
#4B0082
ΔE00 6.55
Purple
#800080
ΔE00 6.76
Grape Purple
#5D1451
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5C166F #296F16
analogous
#2F166F #5C166F #6F1655
triadic
#5C166F #6F5C16 #166F5C
tetradic
#5C166F #6F2F16 #296F16 #16556F
square
#5C166F #6F2F16 #296F16 #16556F
split-complementary
#5C166F #556F16 #166F2F
monochromatic
#15051A #320C3C #5C166F #8620A2 #B12BD5
Accessibility & contrast
On white
11.67
#5C166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#5C166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5C166F
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5C166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5C166F | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 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: #5c166f; /* rgb */ color: rgb(92, 22, 111); /* oklch */ color: oklch(36.2% 0.150 317.8);
Tailwind
colors: {
custom: {
50: '#8e5c99',
500: '#5c166f',
950: '#000000',
},
}SCSS
$custom: #5c166f; $custom-light: #8e5c99; $custom-dark: #000000;
JSON
{
"hex": "#5c166f",
"rgb": {
"r": 92,
"g": 22,
"b": 111
},
"hsl": {
"h": 287.191,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.36156,
"c": 0.15023,
"h": 317.8
},
"luminance": 0.03997
}Semantic roles & 50–950 ramp
primary
#5C166F
secondary
#52A53C
accent
#EA3E63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E