#5A2AAA#5A2AAA
#5A2AAA is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.189 H 294.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2AAA |
|---|---|
| RGB | rgb(90, 42, 170) |
| HSL | hsl(263, 60%, 42%) |
| HSV | hsv(263, 75%, 67%) |
| CMYK | cmyk(47.1%, 75.3%, 0%, 33.3%) |
| CIE-LAB | lab(31.19, 49.50, -60.28) |
| CIE-LCH | lch(31.19, 78.00, 309.39°) |
| OKLab | oklab(42.9% 0.0768 -0.1728) |
| OKLCH | oklch(42.9% 0.189 294) |
| XYZ | xyz(12.2981, 6.7315, 38.6738) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.40
Purple Blue
#5D21D0
ΔE00 5.07
Violet Blue
#510AC9
ΔE00 5.33
Indigo Blue
#3A18B1
ΔE00 5.44
Blue With A Hint Of Purple
#533CC6
ΔE00 5.96
Blurple
#5539CC
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2AAA #7AAA2A
analogous
#2A3AAA #5A2AAA #9A2AAA
triadic
#5A2AAA #AA5A2A #2AAA5A
tetradic
#5A2AAA #AA2A3A #7AAA2A #2AAA9A
square
#5A2AAA #AA2A3A #7AAA2A #2AAA9A
split-complementary
#5A2AAA #AA9A2A #3AAA2A
monochromatic
#261248 #401E79 #5A2AAA #7741D0 #9A72DC
Accessibility & contrast
On white
8.95
#5A2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#5A2AAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2AAA
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2AAA | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#424C68
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5a2aaa; /* rgb */ color: rgb(90, 42, 170); /* oklch */ color: oklch(42.9% 0.189 294.0);
Tailwind
colors: {
custom: {
50: '#9069c4',
500: '#5a2aaa',
950: '#000000',
},
}SCSS
$custom: #5a2aaa; $custom-light: #9069c4; $custom-dark: #000000;
JSON
{
"hex": "#5a2aaa",
"rgb": {
"r": 90,
"g": 42,
"b": 170
},
"hsl": {
"h": 262.5,
"s": 60.377,
"l": 41.569
},
"oklch": {
"l": 0.42903,
"c": 0.18913,
"h": 294
},
"luminance": 0.06732
}Semantic roles & 50–950 ramp
primary
#5A2AAA
secondary
#A3C36C
accent
#E444A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82