#5B2699#5B2699
#5B2699 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.175 H 299.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2699 |
|---|---|
| RGB | rgb(91, 38, 153) |
| HSL | hsl(268, 60%, 37%) |
| HSV | hsv(268, 75%, 60%) |
| CMYK | cmyk(40.5%, 75.2%, 0%, 40%) |
| CIE-LAB | lab(29.18, 47.08, -53.25) |
| CIE-LCH | lch(29.18, 71.08, 311.48°) |
| OKLab | oklab(41.07% 0.0861 -0.1521) |
| OKLCH | oklch(41.07% 0.175 299.5) |
| XYZ | xyz(10.7558, 5.9102, 30.7049) |
| Luminance | 0.0591 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.51
Indigo Blue
#3A18B1
ΔE00 6.50
Purple (survey)
#7E1E9C
ΔE00 6.57
Indigo
#4B0082
ΔE00 6.62
Violet Blue
#510AC9
ΔE00 7.20
Purple Blue
#5D21D0
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2699 #649926
analogous
#262B99 #5B2699 #942699
triadic
#5B2699 #995B26 #26995B
tetradic
#5B2699 #99262B #649926 #269994
square
#5B2699 #99262B #649926 #269994
split-complementary
#5B2699 #999426 #2B9926
monochromatic
#210E37 #3E1A68 #5B2699 #7832CA #9862D8
Accessibility & contrast
On white
9.62
#5B2699 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#5B2699 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2699
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2699 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2699 | 1.00 | 9.62 | 2.18 | 9.62 |
| #FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4C435E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b2699; /* rgb */ color: rgb(91, 38, 153); /* oklch */ color: oklch(41.1% 0.175 299.5);
Tailwind
colors: {
custom: {
50: '#8f66b8',
500: '#5b2699',
950: '#000000',
},
}SCSS
$custom: #5b2699; $custom-light: #8f66b8; $custom-dark: #000000;
JSON
{
"hex": "#5b2699",
"rgb": {
"r": 91,
"g": 38,
"b": 153
},
"hsl": {
"h": 267.652,
"s": 60.209,
"l": 37.451
},
"oklch": {
"l": 0.41066,
"c": 0.17479,
"h": 299.5
},
"luminance": 0.0591
}Semantic roles & 50–950 ramp
primary
#5B2699
secondary
#91BD5E
accent
#E3449A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80