#5A159E#5A159E
#5A159E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.8% C 0.196 H 299.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #5A159E |
|---|---|
| RGB | rgb(90, 21, 158) |
| HSL | hsl(270, 77%, 35%) |
| HSV | hsv(270, 87%, 62%) |
| CMYK | cmyk(43%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(27.24, 54.72, -59.50) |
| CIE-LCH | lch(27.24, 80.83, 312.60°) |
| OKLab | oklab(39.82% 0.096 -0.1703) |
| OKLCH | oklch(39.82% 0.196 299.4) |
| XYZ | xyz(10.6546, 5.1785, 32.7793) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.23
Indigo Blue
#3A18B1
ΔE00 5.32
Violet Blue
#510AC9
ΔE00 5.89
Rebeccapurple
#663399
ΔE00 5.94
Indigo (survey)
#380282
ΔE00 6.86
Purple (survey)
#7E1E9C
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A159E #599E15
analogous
#16159E #5A159E #9E159D
triadic
#5A159E #9E5A15 #159E5A
tetradic
#5A159E #9E1615 #599E15 #159D9E
square
#5A159E #9E1615 #599E15 #159D9E
split-complementary
#5A159E #9D9E15 #159E16
monochromatic
#1C0732 #3B0E68 #5A159E #791CD4 #9747E7
Accessibility & contrast
On white
10.32
#5A159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#5A159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A159E
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A159E | 1.00 | 10.32 | 2.04 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #5a159e; /* rgb */ color: rgb(90, 21, 158); /* oklch */ color: oklch(39.8% 0.196 299.4);
Tailwind
colors: {
custom: {
50: '#905ebc',
500: '#5a159e',
950: '#000000',
},
}SCSS
$custom: #5a159e; $custom-light: #905ebc; $custom-dark: #000000;
JSON
{
"hex": "#5a159e",
"rgb": {
"r": 90,
"g": 21,
"b": 158
},
"hsl": {
"h": 270.219,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.3982,
"c": 0.19555,
"h": 299.4
},
"luminance": 0.05179
}Semantic roles & 50–950 ramp
primary
#5A159E
secondary
#87C747
accent
#F33593
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981