#5A2B7A#5A2B7A
#5A2B7A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.133 H 308.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2B7A |
|---|---|
| RGB | rgb(90, 43, 122) |
| HSL | hsl(276, 48%, 32%) |
| HSV | hsv(276, 65%, 48%) |
| CMYK | cmyk(26.2%, 64.8%, 0%, 52.2%) |
| CIE-LAB | lab(27.59, 36.51, -36.57) |
| CIE-LCH | lch(27.59, 51.67, 314.96°) |
| OKLab | oklab(39.15% 0.0834 -0.1032) |
| OKLCH | oklch(39.15% 0.133 308.9) |
| XYZ | xyz(8.5925, 5.3067, 18.9802) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 5.63
Darkish Purple
#751973
ΔE00 7.20
Royal Purple (survey)
#4B006E
ΔE00 7.50
Indigo
#4B0082
ΔE00 7.87
Purple (survey)
#7E1E9C
ΔE00 7.98
Darkslateblue
#483D8B
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2B7A #4B7A2B
analogous
#322B7A #5A2B7A #7A2B73
triadic
#5A2B7A #7A5A2B #2B7A5A
tetradic
#5A2B7A #7A322B #4B7A2B #2B737A
square
#5A2B7A #7A322B #4B7A2B #2B737A
split-complementary
#5A2B7A #737A2B #2B7A32
monochromatic
#170B1F #391B4D #5A2B7A #7B3BA7 #9A5AC5
Accessibility & contrast
On white
10.19
#5A2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#5A2B7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2B7A
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2B7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2B7A | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#043F7C
Deuteranopia (green-blind)
#1F4278
Tritanopia (blue-blind)
#553B4E
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #5a2b7a; /* rgb */ color: rgb(90, 43, 122); /* oklch */ color: oklch(39.2% 0.133 308.9);
Tailwind
colors: {
custom: {
50: '#8b67a1',
500: '#5a2b7a',
950: '#000000',
},
}SCSS
$custom: #5a2b7a; $custom-light: #8b67a1; $custom-dark: #000000;
JSON
{
"hex": "#5a2b7a",
"rgb": {
"r": 90,
"g": 43,
"b": 122
},
"hsl": {
"h": 275.696,
"s": 47.879,
"l": 32.353
},
"oklch": {
"l": 0.39154,
"c": 0.13264,
"h": 308.9
},
"luminance": 0.05307
}Semantic roles & 50–950 ramp
primary
#5A2B7A
secondary
#78AB56
accent
#D75087
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E