#5A169E#5A169E
#5A169E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.195 H 299.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).
Color values
| HEX | #5A169E |
|---|---|
| RGB | rgb(90, 22, 158) |
| HSL | hsl(270, 76%, 35%) |
| HSV | hsv(270, 86%, 62%) |
| CMYK | cmyk(43%, 86.1%, 0%, 38%) |
| CIE-LAB | lab(27.34, 54.41, -59.32) |
| CIE-LCH | lch(27.34, 80.50, 312.53°) |
| OKLab | oklab(39.89% 0.0954 -0.1699) |
| OKLCH | oklch(39.89% 0.195 299.3) |
| XYZ | xyz(10.6733, 5.2160, 32.7856) |
| Luminance | 0.0522 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.30
Indigo Blue
#3A18B1
ΔE00 5.32
Rebeccapurple
#663399
ΔE00 5.83
Violet Blue
#510AC9
ΔE00 5.89
Indigo (survey)
#380282
ΔE00 6.92
Purple (survey)
#7E1E9C
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A169E #5A9E16
analogous
#16169E #5A169E #9E169E
triadic
#5A169E #9E5A16 #169E5A
tetradic
#5A169E #9E1616 #5A9E16 #169E9E
square
#5A169E #9E1616 #5A9E16 #169E9E
split-complementary
#5A169E #9E9E16 #169E16
monochromatic
#1D0733 #3B0F68 #5A169E #791DD4 #9749E6
Accessibility & contrast
On white
10.28
#5A169E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#5A169E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A169E
10.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A169E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A169E | 1.00 | 10.28 | 2.04 | 10.28 |
| #FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5a169e; /* rgb */ color: rgb(90, 22, 158); /* oklch */ color: oklch(39.9% 0.195 299.3);
Tailwind
colors: {
custom: {
50: '#905fbc',
500: '#5a169e',
950: '#000000',
},
}SCSS
$custom: #5a169e; $custom-light: #905fbc; $custom-dark: #000000;
JSON
{
"hex": "#5a169e",
"rgb": {
"r": 90,
"g": 22,
"b": 158
},
"hsl": {
"h": 270,
"s": 75.556,
"l": 35.294
},
"oklch": {
"l": 0.39891,
"c": 0.19484,
"h": 299.3
},
"luminance": 0.05216
}Semantic roles & 50–950 ramp
primary
#5A169E
secondary
#88C749
accent
#F23694
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981