#5B2AB6#5B2AB6
#5B2AB6 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.202 H 291.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2AB6 |
|---|---|
| RGB | rgb(91, 42, 182) |
| HSL | hsl(261, 63%, 44%) |
| HSV | hsv(261, 77%, 71%) |
| CMYK | cmyk(50%, 76.9%, 0%, 28.6%) |
| CIE-LAB | lab(32.38, 52.86, -65.48) |
| CIE-LCH | lch(32.38, 84.15, 308.91°) |
| OKLab | oklab(44.1% 0.0751 -0.188) |
| OKLCH | oklch(44.1% 0.202 291.8) |
| XYZ | xyz(13.5835, 7.2570, 44.9319) |
| Luminance | 0.0726 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.42
Violet Blue
#510AC9
ΔE00 4.35
Blurple
#5539CC
ΔE00 4.64
Blue With A Hint Of Purple
#533CC6
ΔE00 4.81
Indigo Blue
#3A18B1
ΔE00 5.48
Rebeccapurple
#663399
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2AB6 #85B62A
analogous
#2A3FB6 #5B2AB6 #A12AB6
triadic
#5B2AB6 #B65B2A #2AB65B
tetradic
#5B2AB6 #B62A3F #85B62A #2AB6A1
square
#5B2AB6 #B62A3F #85B62A #2AB6A1
split-complementary
#5B2AB6 #B6A12A #3FB62A
monochromatic
#291353 #421F84 #5B2AB6 #7A48D5 #9E7AE0
Accessibility & contrast
On white
8.57
#5B2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#5B2AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2AB6
8.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2AB6 | 1.00 | 8.57 | 2.45 | 8.57 |
| #FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3D516F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #5b2ab6; /* rgb */ color: rgb(91, 42, 182); /* oklch */ color: oklch(44.1% 0.202 291.8);
Tailwind
colors: {
custom: {
50: '#9369cd',
500: '#5b2ab6',
950: '#000000',
},
}SCSS
$custom: #5b2ab6; $custom-light: #9369cd; $custom-dark: #000000;
JSON
{
"hex": "#5b2ab6",
"rgb": {
"r": 91,
"g": 42,
"b": 182
},
"hsl": {
"h": 261,
"s": 62.5,
"l": 43.922
},
"oklch": {
"l": 0.441,
"c": 0.20247,
"h": 291.8
},
"luminance": 0.07257
}Semantic roles & 50–950 ramp
primary
#5B2AB6
secondary
#ABC873
accent
#E642AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82