#5A1FA9#5A1FA9
#5A1FA9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.199 H 295.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #5A1FA9 |
|---|---|
| RGB | rgb(90, 31, 169) |
| HSL | hsl(266, 69%, 39%) |
| HSV | hsv(266, 82%, 66%) |
| CMYK | cmyk(46.7%, 81.7%, 0%, 33.7%) |
| CIE-LAB | lab(29.46, 53.96, -62.52) |
| CIE-LCH | lch(29.46, 82.58, 310.80°) |
| OKLab | oklab(41.67% 0.0857 -0.1793) |
| OKLCH | oklch(41.67% 0.199 295.5) |
| XYZ | xyz(11.8659, 6.0179, 38.0648) |
| Luminance | 0.0602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Violet Blue
#510AC9
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.65
Purple Blue
#5D21D0
ΔE00 5.33
Rebeccapurple
#663399
ΔE00 5.37
Indigo
#4B0082
ΔE00 7.29
Blurple
#5539CC
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A1FA9 #6EA91F
analogous
#1F29A9 #5A1FA9 #9F1FA9
triadic
#5A1FA9 #A95A1F #1FA95A
tetradic
#5A1FA9 #A91F29 #6EA91F #1FA99F
square
#5A1FA9 #A91F29 #6EA91F #1FA99F
split-complementary
#5A1FA9 #A99F1F #29A91F
monochromatic
#230C42 #3E1675 #5A1FA9 #762DD8 #9860E2
Accessibility & contrast
On white
9.53
#5A1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5A1FA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A1FA9
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A1FA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A1FA9 | 1.00 | 9.53 | 2.20 | 9.53 |
| #FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#434765
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a1fa9; /* rgb */ color: rgb(90, 31, 169); /* oklch */ color: oklch(41.7% 0.199 295.5);
Tailwind
colors: {
custom: {
50: '#9163c4',
500: '#5a1fa9',
950: '#000000',
},
}SCSS
$custom: #5a1fa9; $custom-light: #9163c4; $custom-dark: #000000;
JSON
{
"hex": "#5a1fa9",
"rgb": {
"r": 90,
"g": 31,
"b": 169
},
"hsl": {
"h": 265.652,
"s": 69,
"l": 39.216
},
"oklch": {
"l": 0.41668,
"c": 0.19871,
"h": 295.5
},
"luminance": 0.06018
}Semantic roles & 50–950 ramp
primary
#5A1FA9
secondary
#9AC75D
accent
#EC3CA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82