#5B2F91#5B2F91
#5B2F91 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.154 H 300.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2F91 |
|---|---|
| RGB | rgb(91, 47, 145) |
| HSL | hsl(267, 51%, 38%) |
| HSV | hsv(267, 68%, 57%) |
| CMYK | cmyk(37.2%, 67.6%, 0%, 43.1%) |
| CIE-LAB | lab(30.16, 40.49, -46.76) |
| CIE-LCH | lch(30.16, 61.85, 310.89°) |
| OKLab | oklab(41.56% 0.078 -0.1331) |
| OKLCH | oklch(41.56% 0.154 300.4) |
| XYZ | xyz(10.4405, 6.3014, 27.4488) |
| Luminance | 0.0630 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.37
Darkslateblue
#483D8B
ΔE00 6.21
Purple (survey)
#7E1E9C
ΔE00 6.92
Blueberry
#464196
ΔE00 7.41
Indigo
#4B0082
ΔE00 7.93
Ocean Blue
#4F42B5
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2F91 #65912F
analogous
#2F3491 #5B2F91 #8C2F91
triadic
#5B2F91 #915B2F #2F915B
tetradic
#5B2F91 #912F34 #65912F #2F918C
square
#5B2F91 #912F34 #65912F #2F918C
split-complementary
#5B2F91 #918C2F #34912F
monochromatic
#211135 #3E2063 #5B2F91 #783EBF #986BCF
Accessibility & contrast
On white
9.29
#5B2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#5B2F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2F91
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2F91 | 1.00 | 9.29 | 2.26 | 9.29 |
| #FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#4F455C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #5b2f91; /* rgb */ color: rgb(91, 47, 145); /* oklch */ color: oklch(41.6% 0.154 300.4);
Tailwind
colors: {
custom: {
50: '#8e6bb2',
500: '#5b2f91',
950: '#000000',
},
}SCSS
$custom: #5b2f91; $custom-light: #8e6bb2; $custom-dark: #000000;
JSON
{
"hex": "#5b2f91",
"rgb": {
"r": 91,
"g": 47,
"b": 145
},
"hsl": {
"h": 266.939,
"s": 51.042,
"l": 37.647
},
"oklch": {
"l": 0.41561,
"c": 0.15426,
"h": 300.4
},
"luminance": 0.06302
}Semantic roles & 50–950 ramp
primary
#5B2F91
secondary
#92B665
accent
#DB4D9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80