#5D168F#5D168F
#5D168F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.181 H 305.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #5D168F |
|---|---|
| RGB | rgb(93, 22, 143) |
| HSL | hsl(275, 73%, 32%) |
| HSV | hsv(275, 85%, 56%) |
| CMYK | cmyk(35%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(26.40, 51.35, -51.62) |
| CIE-LCH | lch(26.40, 72.81, 314.85°) |
| OKLab | oklab(38.91% 0.1052 -0.1471) |
| OKLCH | oklch(38.91% 0.181 305.6) |
| XYZ | xyz(9.7579, 4.8842, 26.4100) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.30
Rebeccapurple
#663399
ΔE00 5.67
Royal Purple (survey)
#4B006E
ΔE00 6.22
Purple (survey)
#7E1E9C
ΔE00 6.43
Indigo (survey)
#380282
ΔE00 6.79
Indigo Blue
#3A18B1
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5D168F #488F16
analogous
#21168F #5D168F #8F1684
triadic
#5D168F #8F5D16 #168F5D
tetradic
#5D168F #8F2116 #488F16 #16848F
square
#5D168F #8F2116 #488F16 #16848F
split-complementary
#5D168F #848F16 #168F21
monochromatic
#180625 #3B0E5A #5D168F #7F1EC4 #9E3EE1
Accessibility & contrast
On white
10.62
#5D168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#5D168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5D168F
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5D168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5D168F | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #5d168f; /* rgb */ color: rgb(93, 22, 143); /* oklch */ color: oklch(38.9% 0.181 305.6);
Tailwind
colors: {
custom: {
50: '#915eb1',
500: '#5d168f',
950: '#000000',
},
}SCSS
$custom: #5d168f; $custom-light: #915eb1; $custom-dark: #000000;
JSON
{
"hex": "#5d168f",
"rgb": {
"r": 93,
"g": 22,
"b": 143
},
"hsl": {
"h": 275.207,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.38914,
"c": 0.18088,
"h": 305.6
},
"luminance": 0.04884
}Semantic roles & 50–950 ramp
primary
#5D168F
secondary
#75C13F
accent
#F03884
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980