#5A2BAB#5A2BAB
#5A2BAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.189 H 293.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2BAB |
|---|---|
| RGB | rgb(90, 43, 171) |
| HSL | hsl(262, 60%, 42%) |
| HSV | hsv(262, 75%, 67%) |
| CMYK | cmyk(47.4%, 74.9%, 0%, 32.9%) |
| CIE-LAB | lab(31.44, 49.29, -60.46) |
| CIE-LCH | lch(31.44, 78.01, 309.19°) |
| OKLab | oklab(43.11% 0.0757 -0.1734) |
| OKLCH | oklch(43.11% 0.189 293.6) |
| XYZ | xyz(12.4290, 6.8413, 39.1858) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.43
Purple Blue
#5D21D0
ΔE00 4.95
Violet Blue
#510AC9
ΔE00 5.34
Indigo Blue
#3A18B1
ΔE00 5.52
Blue With A Hint Of Purple
#533CC6
ΔE00 5.72
Blurple
#5539CC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2BAB #7CAB2B
analogous
#2B3CAB #5A2BAB #9A2BAB
triadic
#5A2BAB #AB5A2B #2BAB5A
tetradic
#5A2BAB #AB2B3C #7CAB2B #2BAB9A
square
#5A2BAB #AB2B3C #7CAB2B #2BAB9A
split-complementary
#5A2BAB #AB9A2B #3CAB2B
monochromatic
#271249 #401F7A #5A2BAB #7743D0 #9A74DC
Accessibility & contrast
On white
8.87
#5A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#5A2BAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2BAB
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2BAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2BAB | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#424D69
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #5a2bab; /* rgb */ color: rgb(90, 43, 171); /* oklch */ color: oklch(43.1% 0.189 293.6);
Tailwind
colors: {
custom: {
50: '#9169c5',
500: '#5a2bab',
950: '#000000',
},
}SCSS
$custom: #5a2bab; $custom-light: #9169c5; $custom-dark: #000000;
JSON
{
"hex": "#5a2bab",
"rgb": {
"r": 90,
"g": 43,
"b": 171
},
"hsl": {
"h": 262.031,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.4311,
"c": 0.18917,
"h": 293.6
},
"luminance": 0.06842
}Semantic roles & 50–950 ramp
primary
#5A2BAB
secondary
#A4C46E
accent
#E345A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82