#5A2AB6#5A2AB6
#5A2AB6 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.202 H 291.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2AB6 |
|---|---|
| RGB | rgb(90, 42, 182) |
| HSL | hsl(261, 63%, 44%) |
| HSV | hsv(261, 77%, 71%) |
| CMYK | cmyk(50.5%, 76.9%, 0%, 28.6%) |
| CIE-LAB | lab(32.27, 52.71, -65.67) |
| CIE-LCH | lch(32.27, 84.21, 308.75°) |
| OKLab | oklab(44% 0.0736 -0.1886) |
| OKLCH | oklch(44% 0.202 291.3) |
| XYZ | xyz(13.4855, 7.2065, 44.9273) |
| Luminance | 0.0721 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.43
Violet Blue
#510AC9
ΔE00 4.30
Blurple
#5539CC
ΔE00 4.62
Blue With A Hint Of Purple
#533CC6
ΔE00 4.77
Indigo Blue
#3A18B1
ΔE00 5.35
Rebeccapurple
#663399
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2AB6 #86B62A
analogous
#2A40B6 #5A2AB6 #A02AB6
triadic
#5A2AB6 #B65A2A #2AB65A
tetradic
#5A2AB6 #B62A40 #86B62A #2AB6A0
square
#5A2AB6 #B62A40 #86B62A #2AB6A0
split-complementary
#5A2AB6 #B6A02A #40B62A
monochromatic
#291353 #411F84 #5A2AB6 #7948D5 #9D7AE0
Accessibility & contrast
On white
8.60
#5A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#5A2AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2AB6
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2AB6 | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3A516F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #5a2ab6; /* rgb */ color: rgb(90, 42, 182); /* oklch */ color: oklch(44.0% 0.202 291.3);
Tailwind
colors: {
custom: {
50: '#9269cd',
500: '#5a2ab6',
950: '#000000',
},
}SCSS
$custom: #5a2ab6; $custom-light: #9269cd; $custom-dark: #000000;
JSON
{
"hex": "#5a2ab6",
"rgb": {
"r": 90,
"g": 42,
"b": 182
},
"hsl": {
"h": 260.571,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.43995,
"c": 0.20246,
"h": 291.3
},
"luminance": 0.07207
}Semantic roles & 50–950 ramp
primary
#5A2AB6
secondary
#ABC873
accent
#E642AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82