#5A169F#5A169F
#5A169F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.196 H 299.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #5A169F |
|---|---|
| RGB | rgb(90, 22, 159) |
| HSL | hsl(270, 76%, 35%) |
| HSV | hsv(270, 86%, 62%) |
| CMYK | cmyk(43.4%, 86.2%, 0%, 37.6%) |
| CIE-LAB | lab(27.44, 54.65, -59.78) |
| CIE-LCH | lch(27.44, 80.99, 312.43°) |
| OKLab | oklab(39.99% 0.0951 -0.1712) |
| OKLCH | oklch(39.99% 0.196 299) |
| XYZ | xyz(10.7598, 5.2505, 33.2407) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.22
Indigo
#4B0082
ΔE00 5.41
Violet Blue
#510AC9
ΔE00 5.74
Rebeccapurple
#663399
ΔE00 5.86
Indigo (survey)
#380282
ΔE00 6.99
Purple Blue
#5D21D0
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A169F #5B9F16
analogous
#16169F #5A169F #9E169F
triadic
#5A169F #9F5A16 #169F5A
tetradic
#5A169F #9F1616 #5B9F16 #169F9E
square
#5A169F #9F1616 #5B9F16 #169F9E
split-complementary
#5A169F #9F9E16 #169F16
monochromatic
#1D0733 #3C0F69 #5A169F #781DD5 #974AE6
Accessibility & contrast
On white
10.24
#5A169F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#5A169F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A169F
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A169F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A169F | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#49405E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5a169f; /* rgb */ color: rgb(90, 22, 159); /* oklch */ color: oklch(40.0% 0.196 299.0);
Tailwind
colors: {
custom: {
50: '#905fbc',
500: '#5a169f',
950: '#000000',
},
}SCSS
$custom: #5a169f; $custom-light: #905fbc; $custom-dark: #000000;
JSON
{
"hex": "#5a169f",
"rgb": {
"r": 90,
"g": 22,
"b": 159
},
"hsl": {
"h": 269.781,
"s": 75.691,
"l": 35.49
},
"oklch": {
"l": 0.39986,
"c": 0.19581,
"h": 299
},
"luminance": 0.05251
}Semantic roles & 50–950 ramp
primary
#5A169F
secondary
#89C74A
accent
#F23695
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981