#5B2799#5B2799
#5B2799 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.174 H 299.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2799 |
|---|---|
| RGB | rgb(91, 39, 153) |
| HSL | hsl(267, 59%, 38%) |
| HSV | hsv(267, 75%, 60%) |
| CMYK | cmyk(40.5%, 74.5%, 0%, 40%) |
| CIE-LAB | lab(29.35, 46.62, -52.98) |
| CIE-LCH | lch(29.35, 70.57, 311.34°) |
| OKLab | oklab(41.18% 0.0851 -0.1513) |
| OKLCH | oklch(41.18% 0.174 299.4) |
| XYZ | xyz(10.7882, 5.9750, 30.7157) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.36
Indigo Blue
#3A18B1
ΔE00 6.57
Purple (survey)
#7E1E9C
ΔE00 6.59
Indigo
#4B0082
ΔE00 6.78
Violet Blue
#510AC9
ΔE00 7.28
Purple Blue
#5D21D0
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2799 #659927
analogous
#272C99 #5B2799 #942799
triadic
#5B2799 #995B27 #27995B
tetradic
#5B2799 #99272C #659927 #279994
square
#5B2799 #99272C #659927 #279994
split-complementary
#5B2799 #999427 #2C9927
monochromatic
#210E37 #3E1B68 #5B2799 #7833CA #9863D7
Accessibility & contrast
On white
9.57
#5B2799 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5B2799 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2799
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2799 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2799 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4C445E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b2799; /* rgb */ color: rgb(91, 39, 153); /* oklch */ color: oklch(41.2% 0.174 299.4);
Tailwind
colors: {
custom: {
50: '#8f66b8',
500: '#5b2799',
950: '#000000',
},
}SCSS
$custom: #5b2799; $custom-light: #8f66b8; $custom-dark: #000000;
JSON
{
"hex": "#5b2799",
"rgb": {
"r": 91,
"g": 39,
"b": 153
},
"hsl": {
"h": 267.368,
"s": 59.375,
"l": 37.647
},
"oklch": {
"l": 0.41182,
"c": 0.17364,
"h": 299.4
},
"luminance": 0.05975
}Semantic roles & 50–950 ramp
primary
#5B2799
secondary
#92BD5F
accent
#E3459B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80