#5B2B94#5B2B94
#5B2B94 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.163 H 300.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2B94 |
|---|---|
| RGB | rgb(91, 43, 148) |
| HSL | hsl(267, 55%, 37%) |
| HSV | hsv(267, 71%, 58%) |
| CMYK | cmyk(38.5%, 70.9%, 0%, 42%) |
| CIE-LAB | lab(29.64, 43.37, -49.45) |
| CIE-LCH | lch(29.64, 65.77, 311.25°) |
| OKLab | oklab(41.26% 0.082 -0.141) |
| OKLCH | oklch(41.26% 0.163 300.2) |
| XYZ | xyz(10.5222, 6.0899, 28.6323) |
| Luminance | 0.0609 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.72
Purple (survey)
#7E1E9C
ΔE00 6.64
Darkslateblue
#483D8B
ΔE00 6.94
Indigo
#4B0082
ΔE00 7.21
Indigo Blue
#3A18B1
ΔE00 7.51
Blueberry
#464196
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2B94 #64942B
analogous
#2B2F94 #5B2B94 #902B94
triadic
#5B2B94 #945B2B #2B945B
tetradic
#5B2B94 #942B2F #64942B #2B9490
square
#5B2B94 #942B2F #64942B #2B9490
split-complementary
#5B2B94 #94902B #2F942B
monochromatic
#210F35 #3E1D65 #5B2B94 #7839C3 #9867D3
Accessibility & contrast
On white
9.47
#5B2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#5B2B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2B94
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2B94 | 1.00 | 9.47 | 2.22 | 9.47 |
| #FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#4E445C
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #5b2b94; /* rgb */ color: rgb(91, 43, 148); /* oklch */ color: oklch(41.3% 0.163 300.2);
Tailwind
colors: {
custom: {
50: '#8e68b4',
500: '#5b2b94',
950: '#000000',
},
}SCSS
$custom: #5b2b94; $custom-light: #8e68b4; $custom-dark: #000000;
JSON
{
"hex": "#5b2b94",
"rgb": {
"r": 91,
"g": 43,
"b": 148
},
"hsl": {
"h": 267.429,
"s": 54.974,
"l": 37.451
},
"oklch": {
"l": 0.4126,
"c": 0.16311,
"h": 300.2
},
"luminance": 0.0609
}Semantic roles & 50–950 ramp
primary
#5B2B94
secondary
#91B962
accent
#DE499A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80