#5A2A96#5A2A96
#5A2A96 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.167 H 299.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2A96 |
|---|---|
| RGB | rgb(90, 42, 150) |
| HSL | hsl(267, 56%, 38%) |
| HSV | hsv(267, 72%, 59%) |
| CMYK | cmyk(40%, 72%, 0%, 41.2%) |
| CIE-LAB | lab(29.49, 44.19, -50.92) |
| CIE-LCH | lch(29.49, 67.42, 310.96°) |
| OKLab | oklab(41.18% 0.0813 -0.1453) |
| OKLCH | oklch(41.18% 0.167 299.2) |
| XYZ | xyz(10.5480, 6.0315, 29.4567) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.00
Purple (survey)
#7E1E9C
ΔE00 6.81
Indigo Blue
#3A18B1
ΔE00 7.04
Darkslateblue
#483D8B
ΔE00 7.05
Indigo
#4B0082
ΔE00 7.06
Violet Blue
#510AC9
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2A96 #66962A
analogous
#2A3096 #5A2A96 #902A96
triadic
#5A2A96 #965A2A #2A965A
tetradic
#5A2A96 #962A30 #66962A #2A9690
square
#5A2A96 #962A30 #66962A #2A9690
split-complementary
#5A2A96 #96902A #30962A
monochromatic
#210F36 #3D1D66 #5A2A96 #7737C6 #9766D4
Accessibility & contrast
On white
9.52
#5A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5A2A96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2A96
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2A96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2A96 | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#4C445D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a2a96; /* rgb */ color: rgb(90, 42, 150); /* oklch */ color: oklch(41.2% 0.167 299.2);
Tailwind
colors: {
custom: {
50: '#8e68b6',
500: '#5a2a96',
950: '#000000',
},
}SCSS
$custom: #5a2a96; $custom-light: #8e68b6; $custom-dark: #000000;
JSON
{
"hex": "#5a2a96",
"rgb": {
"r": 90,
"g": 42,
"b": 150
},
"hsl": {
"h": 266.667,
"s": 56.25,
"l": 37.647
},
"oklch": {
"l": 0.41178,
"c": 0.16651,
"h": 299.2
},
"luminance": 0.06032
}Semantic roles & 50–950 ramp
primary
#5A2A96
secondary
#93BA61
accent
#E0489C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80