#5A1FA8#5A1FA8
#5A1FA8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.198 H 295.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5A1FA8 |
|---|---|
| RGB | rgb(90, 31, 168) |
| HSL | hsl(266, 69%, 39%) |
| HSV | hsv(266, 82%, 66%) |
| CMYK | cmyk(46.4%, 81.5%, 0%, 34.1%) |
| CIE-LAB | lab(29.36, 53.71, -62.07) |
| CIE-LCH | lch(29.36, 82.08, 310.87°) |
| OKLab | oklab(41.57% 0.086 -0.178) |
| OKLCH | oklch(41.57% 0.198 295.8) |
| XYZ | xyz(11.7724, 5.9805, 37.5723) |
| Luminance | 0.0598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Violet Blue
#510AC9
ΔE00 4.68
Indigo Blue
#3A18B1
ΔE00 4.70
Rebeccapurple
#663399
ΔE00 5.30
Purple Blue
#5D21D0
ΔE00 5.47
Indigo
#4B0082
ΔE00 7.17
Purple (survey)
#7E1E9C
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A1FA8 #6DA81F
analogous
#1F29A8 #5A1FA8 #9F1FA8
triadic
#5A1FA8 #A85A1F #1FA85A
tetradic
#5A1FA8 #A81F29 #6DA81F #1FA89F
square
#5A1FA8 #A81F29 #6DA81F #1FA89F
split-complementary
#5A1FA8 #A89F1F #29A81F
monochromatic
#230C41 #3E1574 #5A1FA8 #762CD8 #9860E2
Accessibility & contrast
On white
9.56
#5A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5A1FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A1FA8
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A1FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A1FA8 | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#444765
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a1fa8; /* rgb */ color: rgb(90, 31, 168); /* oklch */ color: oklch(41.6% 0.198 295.8);
Tailwind
colors: {
custom: {
50: '#9163c3',
500: '#5a1fa8',
950: '#000000',
},
}SCSS
$custom: #5a1fa8; $custom-light: #9163c3; $custom-dark: #000000;
JSON
{
"hex": "#5a1fa8",
"rgb": {
"r": 90,
"g": 31,
"b": 168
},
"hsl": {
"h": 265.839,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.41574,
"c": 0.19768,
"h": 295.8
},
"luminance": 0.05981
}Semantic roles & 50–950 ramp
primary
#5A1FA8
secondary
#99C65D
accent
#EC3CA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82