#5A2B94#5A2B94
#5A2B94 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.163 H 299.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2B94 |
|---|---|
| RGB | rgb(90, 43, 148) |
| HSL | hsl(267, 55%, 37%) |
| HSV | hsv(267, 71%, 58%) |
| CMYK | cmyk(39.2%, 70.9%, 0%, 42%) |
| CIE-LAB | lab(29.51, 43.16, -49.66) |
| CIE-LCH | lch(29.51, 65.80, 311.00°) |
| OKLab | oklab(41.14% 0.0806 -0.1416) |
| OKLCH | oklch(41.14% 0.163 299.6) |
| XYZ | xyz(10.4243, 6.0394, 28.6278) |
| Luminance | 0.0604 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.86
Purple (survey)
#7E1E9C
ΔE00 6.83
Darkslateblue
#483D8B
ΔE00 6.83
Indigo
#4B0082
ΔE00 7.16
Indigo Blue
#3A18B1
ΔE00 7.38
Blueberry
#464196
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2B94 #65942B
analogous
#2B3194 #5A2B94 #8E2B94
triadic
#5A2B94 #945A2B #2B945A
tetradic
#5A2B94 #942B31 #65942B #2B948E
square
#5A2B94 #942B31 #65942B #2B948E
split-complementary
#5A2B94 #948E2B #31942B
monochromatic
#200F35 #3D1D65 #5A2B94 #7739C3 #9767D3
Accessibility & contrast
On white
9.51
#5A2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#5A2B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2B94
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2B94 | 1.00 | 9.51 | 2.21 | 9.51 |
| #FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#4D445C
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5a2b94; /* rgb */ color: rgb(90, 43, 148); /* oklch */ color: oklch(41.1% 0.163 299.6);
Tailwind
colors: {
custom: {
50: '#8e68b4',
500: '#5a2b94',
950: '#000000',
},
}SCSS
$custom: #5a2b94; $custom-light: #8e68b4; $custom-dark: #000000;
JSON
{
"hex": "#5a2b94",
"rgb": {
"r": 90,
"g": 43,
"b": 148
},
"hsl": {
"h": 266.857,
"s": 54.974,
"l": 37.451
},
"oklch": {
"l": 0.41142,
"c": 0.16294,
"h": 299.6
},
"luminance": 0.0604
}Semantic roles & 50–950 ramp
primary
#5A2B94
secondary
#92B962
accent
#DE499C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80