#5B2499#5B2499
#5B2499 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.177 H 299.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2499 |
|---|---|
| RGB | rgb(91, 36, 153) |
| HSL | hsl(268, 62%, 37%) |
| HSV | hsv(268, 76%, 60%) |
| CMYK | cmyk(40.5%, 76.5%, 0%, 40%) |
| CIE-LAB | lab(28.87, 47.99, -53.77) |
| CIE-LCH | lch(28.87, 72.07, 311.75°) |
| OKLab | oklab(40.84% 0.0879 -0.1536) |
| OKLCH | oklch(40.84% 0.177 299.8) |
| XYZ | xyz(10.6936, 5.7857, 30.6842) |
| Luminance | 0.0579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.81
Indigo
#4B0082
ΔE00 6.33
Indigo Blue
#3A18B1
ΔE00 6.37
Purple (survey)
#7E1E9C
ΔE00 6.55
Violet Blue
#510AC9
ΔE00 7.08
Purple Blue
#5D21D0
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2499 #629924
analogous
#242899 #5B2499 #962499
triadic
#5B2499 #995B24 #24995B
tetradic
#5B2499 #992428 #629924 #249996
square
#5B2499 #992428 #629924 #249996
split-complementary
#5B2499 #999624 #289924
monochromatic
#200D36 #3E1867 #5B2499 #7830CB #985ED9
Accessibility & contrast
On white
9.73
#5B2499 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#5B2499 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2499
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2499 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2499 | 1.00 | 9.73 | 2.16 | 9.73 |
| #FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #5b2499; /* rgb */ color: rgb(91, 36, 153); /* oklch */ color: oklch(40.8% 0.177 299.8);
Tailwind
colors: {
custom: {
50: '#8f65b8',
500: '#5b2499',
950: '#000000',
},
}SCSS
$custom: #5b2499; $custom-light: #8f65b8; $custom-dark: #000000;
JSON
{
"hex": "#5b2499",
"rgb": {
"r": 91,
"g": 36,
"b": 153
},
"hsl": {
"h": 268.205,
"s": 61.905,
"l": 37.059
},
"oklch": {
"l": 0.40841,
"c": 0.17702,
"h": 299.8
},
"luminance": 0.05786
}Semantic roles & 50–950 ramp
primary
#5B2499
secondary
#8FBE5B
accent
#E54399
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80