#5B209E#5B209E
#5B209E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.186 H 298.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5B209E |
|---|---|
| RGB | rgb(91, 32, 158) |
| HSL | hsl(268, 66%, 37%) |
| HSV | hsv(268, 80%, 62%) |
| CMYK | cmyk(42.4%, 79.7%, 0%, 38%) |
| CIE-LAB | lab(28.71, 50.96, -57.08) |
| CIE-LCH | lch(28.71, 76.51, 311.76°) |
| OKLab | oklab(40.87% 0.09 -0.1633) |
| OKLCH | oklch(40.87% 0.186 298.8) |
| XYZ | xyz(11.0009, 5.7256, 32.8667) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.54
Indigo Blue
#3A18B1
ΔE00 5.65
Violet Blue
#510AC9
ΔE00 6.15
Indigo
#4B0082
ΔE00 6.25
Purple (survey)
#7E1E9C
ΔE00 6.73
Purple Blue
#5D21D0
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B209E #639E20
analogous
#20249E #5B209E #9A209E
triadic
#5B209E #9E5B20 #209E5B
tetradic
#5B209E #9E2024 #639E20 #209E9A
square
#5B209E #9E2024 #639E20 #209E9A
split-complementary
#5B209E #9E9A20 #249E20
monochromatic
#200B38 #3E166B #5B209E #782AD1 #985BDE
Accessibility & contrast
On white
9.79
#5B209E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5B209E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B209E
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B209E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B209E | 1.00 | 9.79 | 2.15 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4A435F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b209e; /* rgb */ color: rgb(91, 32, 158); /* oklch */ color: oklch(40.9% 0.186 298.8);
Tailwind
colors: {
custom: {
50: '#9063bc',
500: '#5b209e',
950: '#000000',
},
}SCSS
$custom: #5b209e; $custom-light: #9063bc; $custom-dark: #000000;
JSON
{
"hex": "#5b209e",
"rgb": {
"r": 91,
"g": 32,
"b": 158
},
"hsl": {
"h": 268.095,
"s": 66.316,
"l": 37.255
},
"oklch": {
"l": 0.40867,
"c": 0.18646,
"h": 298.8
},
"luminance": 0.05726
}Semantic roles & 50–950 ramp
primary
#5B209E
secondary
#90C258
accent
#E93F99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81