#58168E#58168E
#58168E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.179 H 303.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).
Color values
| HEX | #58168E |
|---|---|
| RGB | rgb(88, 22, 142) |
| HSL | hsl(273, 73%, 32%) |
| HSV | hsv(273, 85%, 56%) |
| CMYK | cmyk(38%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.57, 50.34, -52.39) |
| CIE-LCH | lch(25.57, 72.66, 313.85°) |
| OKLab | oklab(38.15% 0.098 -0.1496) |
| OKLCH | oklch(38.15% 0.179 303.2) |
| XYZ | xyz(9.1927, 4.6015, 25.9898) |
| Luminance | 0.0460 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.67
Royal Purple (survey)
#4B006E
ΔE00 5.87
Indigo (survey)
#380282
ΔE00 5.95
Rebeccapurple
#663399
ΔE00 6.08
Indigo Blue
#3A18B1
ΔE00 7.02
Purple (survey)
#7E1E9C
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#58168E #4C8E16
analogous
#1C168E #58168E #8E1688
triadic
#58168E #8E5816 #168E58
tetradic
#58168E #8E1C16 #4C8E16 #16888E
square
#58168E #8E1C16 #4C8E16 #16888E
split-complementary
#58168E #888E16 #168E1C
monochromatic
#160624 #370E59 #58168E #791EC3 #973DE1
Accessibility & contrast
On white
10.94
#58168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#58168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #58168E
10.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##58168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##58168E | 1.00 | 10.94 | 1.92 | 10.94 |
| #FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#4D3854
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #58168e; /* rgb */ color: rgb(88, 22, 142); /* oklch */ color: oklch(38.2% 0.179 303.2);
Tailwind
colors: {
custom: {
50: '#8d5db0',
500: '#58168e',
950: '#000000',
},
}SCSS
$custom: #58168e; $custom-light: #8d5db0; $custom-dark: #000000;
JSON
{
"hex": "#58168e",
"rgb": {
"r": 88,
"g": 22,
"b": 142
},
"hsl": {
"h": 273,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.38153,
"c": 0.17884,
"h": 303.2
},
"luminance": 0.04602
}Semantic roles & 50–950 ramp
primary
#58168E
secondary
#79C13F
accent
#F0388B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980