#5A168F#5A168F
#5A168F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.180 H 304.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5A168F |
|---|---|
| RGB | rgb(90, 22, 143) |
| HSL | hsl(274, 73%, 32%) |
| HSV | hsv(274, 85%, 56%) |
| CMYK | cmyk(37.1%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(25.95, 50.88, -52.37) |
| CIE-LCH | lch(25.95, 73.02, 314.17°) |
| OKLab | oklab(38.51% 0.1007 -0.1495) |
| OKLCH | oklch(38.51% 0.18 304) |
| XYZ | xyz(9.4601, 4.7307, 26.3960) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.94
Rebeccapurple
#663399
ΔE00 5.89
Royal Purple (survey)
#4B006E
ΔE00 6.07
Indigo (survey)
#380282
ΔE00 6.29
Purple (survey)
#7E1E9C
ΔE00 6.95
Indigo Blue
#3A18B1
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A168F #4B8F16
analogous
#1E168F #5A168F #8F1688
triadic
#5A168F #8F5A16 #168F5A
tetradic
#5A168F #8F1E16 #4B8F16 #16888F
square
#5A168F #8F1E16 #4B8F16 #16888F
split-complementary
#5A168F #888F16 #168F1E
monochromatic
#170625 #390E5A #5A168F #7B1EC4 #9A3EE1
Accessibility & contrast
On white
10.79
#5A168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#5A168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A168F
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A168F | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4F3854
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #5a168f; /* rgb */ color: rgb(90, 22, 143); /* oklch */ color: oklch(38.5% 0.180 304.0);
Tailwind
colors: {
custom: {
50: '#8f5eb1',
500: '#5a168f',
950: '#000000',
},
}SCSS
$custom: #5a168f; $custom-light: #8f5eb1; $custom-dark: #000000;
JSON
{
"hex": "#5a168f",
"rgb": {
"r": 90,
"g": 22,
"b": 143
},
"hsl": {
"h": 273.719,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.38509,
"c": 0.18021,
"h": 304
},
"luminance": 0.04731
}Semantic roles & 50–950 ramp
primary
#5A168F
secondary
#78C13F
accent
#F03888
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980