#5B219E#5B219E
#5B219E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.185 H 298.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5B219E |
|---|---|
| RGB | rgb(91, 33, 158) |
| HSL | hsl(268, 65%, 37%) |
| HSV | hsv(268, 79%, 62%) |
| CMYK | cmyk(42.4%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(28.85, 50.55, -56.84) |
| CIE-LCH | lch(28.85, 76.07, 311.64°) |
| OKLab | oklab(40.97% 0.0892 -0.1626) |
| OKLCH | oklch(40.97% 0.185 298.7) |
| XYZ | xyz(11.0282, 5.7803, 32.8758) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.40
Indigo Blue
#3A18B1
ΔE00 5.69
Violet Blue
#510AC9
ΔE00 6.19
Indigo
#4B0082
ΔE00 6.36
Purple (survey)
#7E1E9C
ΔE00 6.72
Purple Blue
#5D21D0
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B219E #649E21
analogous
#21269E #5B219E #9A219E
triadic
#5B219E #9E5B21 #219E5B
tetradic
#5B219E #9E2126 #649E21 #219E9A
square
#5B219E #9E2126 #649E21 #219E9A
split-complementary
#5B219E #9E9A21 #269E21
monochromatic
#210C39 #3E166B #5B219E #782CD1 #985CDD
Accessibility & contrast
On white
9.74
#5B219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5B219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B219E
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B219E | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4A435F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b219e; /* rgb */ color: rgb(91, 33, 158); /* oklch */ color: oklch(41.0% 0.185 298.7);
Tailwind
colors: {
custom: {
50: '#9064bc',
500: '#5b219e',
950: '#000000',
},
}SCSS
$custom: #5b219e; $custom-light: #9064bc; $custom-dark: #000000;
JSON
{
"hex": "#5b219e",
"rgb": {
"r": 91,
"g": 33,
"b": 158
},
"hsl": {
"h": 267.84,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.40966,
"c": 0.18548,
"h": 298.7
},
"luminance": 0.0578
}Semantic roles & 50–950 ramp
primary
#5B219E
secondary
#91C159
accent
#E83F9A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81