#5B2CAB#5B2CAB
#5B2CAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.188 H 293.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2CAB |
|---|---|
| RGB | rgb(91, 44, 171) |
| HSL | hsl(262, 59%, 42%) |
| HSV | hsv(262, 74%, 67%) |
| CMYK | cmyk(46.8%, 74.3%, 0%, 32.9%) |
| CIE-LAB | lab(31.73, 48.98, -59.99) |
| CIE-LCH | lch(31.73, 77.44, 309.23°) |
| OKLab | oklab(43.34% 0.0763 -0.172) |
| OKLCH | oklch(43.34% 0.188 293.9) |
| XYZ | xyz(12.5637, 6.9654, 39.2027) |
| Luminance | 0.0697 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.25
Purple Blue
#5D21D0
ΔE00 4.99
Violet Blue
#510AC9
ΔE00 5.52
Blue With A Hint Of Purple
#533CC6
ΔE00 5.62
Blurple
#5539CC
ΔE00 5.71
Indigo Blue
#3A18B1
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2CAB #7CAB2C
analogous
#2C3CAB #5B2CAB #9B2CAB
triadic
#5B2CAB #AB5B2C #2CAB5B
tetradic
#5B2CAB #AB2C3C #7CAB2C #2CAB9B
square
#5B2CAB #AB2C3C #7CAB2C #2CAB9B
split-complementary
#5B2CAB #AB9B2C #3CAB2C
monochromatic
#27134A #411F7A #5B2CAB #7845CF #9B76DC
Accessibility & contrast
On white
8.77
#5B2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#5B2CAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2CAB
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2CAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2CAB | 1.00 | 8.77 | 2.39 | 8.77 |
| #FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#434E69
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #5b2cab; /* rgb */ color: rgb(91, 44, 171); /* oklch */ color: oklch(43.3% 0.188 293.9);
Tailwind
colors: {
custom: {
50: '#916ac5',
500: '#5b2cab',
950: '#000000',
},
}SCSS
$custom: #5b2cab; $custom-light: #916ac5; $custom-dark: #000000;
JSON
{
"hex": "#5b2cab",
"rgb": {
"r": 91,
"g": 44,
"b": 171
},
"hsl": {
"h": 262.205,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.43337,
"c": 0.18813,
"h": 293.9
},
"luminance": 0.06966
}Semantic roles & 50–950 ramp
primary
#5B2CAB
secondary
#A4C36F
accent
#E246A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82