#5B2D9F#5B2D9F
#5B2D9F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.173 H 296.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2D9F |
|---|---|
| RGB | rgb(91, 45, 159) |
| HSL | hsl(264, 56%, 40%) |
| HSV | hsv(264, 72%, 62%) |
| CMYK | cmyk(42.8%, 71.7%, 0%, 37.6%) |
| CIE-LAB | lab(30.89, 45.26, -54.13) |
| CIE-LCH | lch(30.89, 70.56, 309.90°) |
| OKLab | oklab(42.43% 0.078 -0.1547) |
| OKLCH | oklch(42.43% 0.173 296.7) |
| XYZ | xyz(11.5091, 6.6039, 33.4625) |
| Luminance | 0.0660 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.95
Indigo Blue
#3A18B1
ΔE00 6.59
Purple Blue
#5D21D0
ΔE00 6.79
Ocean Blue
#4F42B5
ΔE00 6.88
Darkslateblue
#483D8B
ΔE00 6.97
Violet Blue
#510AC9
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2D9F #719F2D
analogous
#2D389F #5B2D9F #942D9F
triadic
#5B2D9F #9F5B2D #2D9F5B
tetradic
#5B2D9F #9F2D38 #719F2D #2D9F94
square
#5B2D9F #9F2D38 #719F2D #2D9F94
split-complementary
#5B2D9F #9F942D #389F2D
monochromatic
#241240 #40206F #5B2D9F #7740C9 #9970D6
Accessibility & contrast
On white
9.05
#5B2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#5B2D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2D9F
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2D9F | 1.00 | 9.05 | 2.32 | 9.05 |
| #FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#494963
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #5b2d9f; /* rgb */ color: rgb(91, 45, 159); /* oklch */ color: oklch(42.4% 0.173 296.7);
Tailwind
colors: {
custom: {
50: '#906abc',
500: '#5b2d9f',
950: '#000000',
},
}SCSS
$custom: #5b2d9f; $custom-light: #906abc; $custom-dark: #000000;
JSON
{
"hex": "#5b2d9f",
"rgb": {
"r": 91,
"g": 45,
"b": 159
},
"hsl": {
"h": 264.211,
"s": 55.882,
"l": 40
},
"oklch": {
"l": 0.42427,
"c": 0.17328,
"h": 296.7
},
"luminance": 0.06604
}Semantic roles & 50–950 ramp
primary
#5B2D9F
secondary
#9CBE6A
accent
#DF49A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81