#5B2399#5B2399
#5B2399 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.178 H 299.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2399 |
|---|---|
| RGB | rgb(91, 35, 153) |
| HSL | hsl(268, 63%, 37%) |
| HSV | hsv(268, 77%, 60%) |
| CMYK | cmyk(40.5%, 77.1%, 0%, 40%) |
| CIE-LAB | lab(28.71, 48.44, -54.02) |
| CIE-LCH | lch(28.71, 72.56, 311.88°) |
| OKLab | oklab(40.73% 0.0888 -0.1544) |
| OKLCH | oklch(40.73% 0.178 299.9) |
| XYZ | xyz(10.6637, 5.7260, 30.6742) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.95
Indigo
#4B0082
ΔE00 6.19
Indigo Blue
#3A18B1
ΔE00 6.31
Purple (survey)
#7E1E9C
ΔE00 6.55
Violet Blue
#510AC9
ΔE00 7.02
Purple Blue
#5D21D0
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2399 #619923
analogous
#232699 #5B2399 #962399
triadic
#5B2399 #995B23 #23995B
tetradic
#5B2399 #992326 #619923 #239996
square
#5B2399 #992326 #619923 #239996
split-complementary
#5B2399 #999623 #269923
monochromatic
#200C35 #3D1867 #5B2399 #792ECB #985DDA
Accessibility & contrast
On white
9.79
#5B2399 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#5B2399 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2399
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2399 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2399 | 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)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b2399; /* rgb */ color: rgb(91, 35, 153); /* oklch */ color: oklch(40.7% 0.178 299.9);
Tailwind
colors: {
custom: {
50: '#9064b8',
500: '#5b2399',
950: '#000000',
},
}SCSS
$custom: #5b2399; $custom-light: #9064b8; $custom-dark: #000000;
JSON
{
"hex": "#5b2399",
"rgb": {
"r": 91,
"g": 35,
"b": 153
},
"hsl": {
"h": 268.475,
"s": 62.766,
"l": 36.863
},
"oklch": {
"l": 0.40733,
"c": 0.1781,
"h": 299.9
},
"luminance": 0.05726
}Semantic roles & 50–950 ramp
primary
#5B2399
secondary
#8EBE59
accent
#E64298
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80