#5B219B#5B219B
#5B219B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.182 H 299.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #5B219B |
|---|---|
| RGB | rgb(91, 33, 155) |
| HSL | hsl(269, 65%, 37%) |
| HSV | hsv(269, 79%, 61%) |
| CMYK | cmyk(41.3%, 78.7%, 0%, 39.2%) |
| CIE-LAB | lab(28.59, 49.79, -55.45) |
| CIE-LCH | lch(28.59, 74.53, 311.92°) |
| OKLab | oklab(40.7% 0.09 -0.1585) |
| OKLCH | oklch(40.7% 0.182 299.6) |
| XYZ | xyz(10.7731, 5.6783, 31.5324) |
| Luminance | 0.0568 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.30
Indigo Blue
#3A18B1
ΔE00 5.99
Indigo
#4B0082
ΔE00 6.09
Purple (survey)
#7E1E9C
ΔE00 6.61
Violet Blue
#510AC9
ΔE00 6.63
Purple Blue
#5D21D0
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B219B #619B21
analogous
#21249B #5B219B #98219B
triadic
#5B219B #9B5B21 #219B5B
tetradic
#5B219B #9B2124 #619B21 #219B98
square
#5B219B #9B2124 #619B21 #219B98
split-complementary
#5B219B #9B9821 #249B21
monochromatic
#200C36 #3D1669 #5B219B #792CCD #985ADC
Accessibility & contrast
On white
9.83
#5B219B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#5B219B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B219B
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B219B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B219B | 1.00 | 9.83 | 2.14 | 9.83 |
| #FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #5b219b; /* rgb */ color: rgb(91, 33, 155); /* oklch */ color: oklch(40.7% 0.182 299.6);
Tailwind
colors: {
custom: {
50: '#9063b9',
500: '#5b219b',
950: '#000000',
},
}SCSS
$custom: #5b219b; $custom-light: #9063b9; $custom-dark: #000000;
JSON
{
"hex": "#5b219b",
"rgb": {
"r": 91,
"g": 33,
"b": 155
},
"hsl": {
"h": 268.525,
"s": 64.894,
"l": 36.863
},
"oklch": {
"l": 0.40699,
"c": 0.18232,
"h": 299.6
},
"luminance": 0.05678
}Semantic roles & 50–950 ramp
primary
#5B219B
secondary
#8EC058
accent
#E84098
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81