#5B2C8E#5B2C8E
#5B2C8E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.155 H 301.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5B2C8E |
|---|---|
| RGB | rgb(91, 44, 142) |
| HSL | hsl(269, 53%, 36%) |
| HSV | hsv(269, 69%, 56%) |
| CMYK | cmyk(35.9%, 69%, 0%, 44.3%) |
| CIE-LAB | lab(29.36, 41.29, -46.21) |
| CIE-LCH | lch(29.36, 61.97, 311.78°) |
| OKLab | oklab(40.91% 0.0818 -0.1314) |
| OKLCH | oklch(40.91% 0.155 301.9) |
| XYZ | xyz(10.0964, 5.9785, 26.2080) |
| Luminance | 0.0598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.83
Purple (survey)
#7E1E9C
ΔE00 6.72
Darkslateblue
#483D8B
ΔE00 6.77
Indigo
#4B0082
ΔE00 7.25
Blueberry
#464196
ΔE00 8.11
Indigo Blue
#3A18B1
ΔE00 8.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B2C8E #5F8E2C
analogous
#2C2E8E #5B2C8E #8C2C8E
triadic
#5B2C8E #8E5B2C #2C8E5B
tetradic
#5B2C8E #8E2C2E #5F8E2C #2C8E8C
square
#5B2C8E #8E2C2E #5F8E2C #2C8E8C
split-complementary
#5B2C8E #8E8C2C #2E8E2C
monochromatic
#1F0F31 #3D1E5F #5B2C8E #793ABD #9865CF
Accessibility & contrast
On white
9.56
#5B2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#5B2C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B2C8E
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B2C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B2C8E | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#504259
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5b2c8e; /* rgb */ color: rgb(91, 44, 142); /* oklch */ color: oklch(40.9% 0.155 301.9);
Tailwind
colors: {
custom: {
50: '#8e69b0',
500: '#5b2c8e',
950: '#000000',
},
}SCSS
$custom: #5b2c8e; $custom-light: #8e69b0; $custom-dark: #000000;
JSON
{
"hex": "#5b2c8e",
"rgb": {
"r": 91,
"g": 44,
"b": 142
},
"hsl": {
"h": 268.776,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.40914,
"c": 0.15484,
"h": 301.9
},
"luminance": 0.05979
}Semantic roles & 50–950 ramp
primary
#5B2C8E
secondary
#8DB660
accent
#DC4C97
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F