#5A2B91#5A2B91
#5A2B91 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.159 H 300.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2B91 |
|---|---|
| RGB | rgb(90, 43, 145) |
| HSL | hsl(268, 54%, 37%) |
| HSV | hsv(268, 70%, 57%) |
| CMYK | cmyk(37.9%, 70.3%, 0%, 43.1%) |
| CIE-LAB | lab(29.28, 42.38, -48.20) |
| CIE-LCH | lch(29.28, 64.18, 311.32°) |
| OKLab | oklab(40.9% 0.0811 -0.1373) |
| OKLCH | oklch(40.9% 0.159 300.5) |
| XYZ | xyz(10.1899, 5.9457, 27.3934) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.92
Darkslateblue
#483D8B
ΔE00 6.81
Purple (survey)
#7E1E9C
ΔE00 6.82
Indigo
#4B0082
ΔE00 7.05
Indigo Blue
#3A18B1
ΔE00 7.77
Blueberry
#464196
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2B91 #62912B
analogous
#2B2F91 #5A2B91 #8D2B91
triadic
#5A2B91 #915A2B #2B915A
tetradic
#5A2B91 #912B2F #62912B #2B918D
square
#5A2B91 #912B2F #62912B #2B918D
split-complementary
#5A2B91 #918D2B #2F912B
monochromatic
#1F0F33 #3D1D62 #5A2B91 #7739C0 #9765D1
Accessibility & contrast
On white
9.59
#5A2B91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A2B91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2B91
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2B91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2B91 | 1.00 | 9.59 | 2.19 | 9.59 |
| #FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#4E435A
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a2b91; /* rgb */ color: rgb(90, 43, 145); /* oklch */ color: oklch(40.9% 0.159 300.5);
Tailwind
colors: {
custom: {
50: '#8d68b2',
500: '#5a2b91',
950: '#000000',
},
}SCSS
$custom: #5a2b91; $custom-light: #8d68b2; $custom-dark: #000000;
JSON
{
"hex": "#5a2b91",
"rgb": {
"r": 90,
"g": 43,
"b": 145
},
"hsl": {
"h": 267.647,
"s": 54.255,
"l": 36.863
},
"oklch": {
"l": 0.40899,
"c": 0.15948,
"h": 300.5
},
"luminance": 0.05946
}Semantic roles & 50–950 ramp
primary
#5A2B91
secondary
#8FB860
accent
#DE4A9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80