#5B4E7B#5B4E7B
#5B4E7B is a mid, moderate violet. Relative luminance 0.091; OKLCH L 45.6% C 0.073 H 296.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #5B4E7B |
|---|---|
| RGB | rgb(91, 78, 123) |
| HSL | hsl(257, 22%, 39%) |
| HSV | hsv(257, 37%, 48%) |
| CMYK | cmyk(26%, 36.6%, 0%, 51.8%) |
| CIE-LAB | lab(36.18, 15.85, -23.59) |
| CIE-LCH | lch(36.18, 28.42, 303.89°) |
| OKLab | oklab(45.61% 0.0329 -0.0655) |
| OKLCH | oklch(45.61% 0.073 296.7) |
| XYZ | xyz(10.6131, 9.1029, 19.9329) |
| Luminance | 0.0910 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dusk
#4E5481
ΔE00 5.84
Twilight
#4E518B
ΔE00 6.28
Darkslateblue
#483D8B
ΔE00 9.12
Muted Purple
#805B87
ΔE00 9.58
Blueberry
#464196
ΔE00 10.10
Royal Purple
#7851A9
ΔE00 10.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B4E7B #6E7B4E
analogous
#4E587B #5B4E7B #724E7B
triadic
#5B4E7B #7B5B4E #4E7B5B
tetradic
#5B4E7B #7B4E58 #6E7B4E #4E7B72
square
#5B4E7B #7B4E58 #6E7B4E #4E7B72
split-complementary
#5B4E7B #7B724E #587B4E
monochromatic
#241F30 #3F3656 #5B4E7B #77679F #998DB7
Accessibility & contrast
On white
7.45
#5B4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.82
#5B4E7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B4E7B
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B4E7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B4E7B | 1.00 | 7.45 | 2.82 | 7.45 |
| #FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#43557D
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#55555F
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #5b4e7b; /* rgb */ color: rgb(91, 78, 123); /* oklch */ color: oklch(45.6% 0.073 296.7);
Tailwind
colors: {
custom: {
50: '#8a7fa1',
500: '#5b4e7b',
950: '#000000',
},
}SCSS
$custom: #5b4e7b; $custom-light: #8a7fa1; $custom-dark: #000000;
JSON
{
"hex": "#5b4e7b",
"rgb": {
"r": 91,
"g": 78,
"b": 123
},
"hsl": {
"h": 257.333,
"s": 22.388,
"l": 39.412
},
"oklch": {
"l": 0.45606,
"c": 0.07331,
"h": 296.7
},
"luminance": 0.09103
}Semantic roles & 50–950 ramp
primary
#5B4E7B
secondary
#9AA381
accent
#BF69A6
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0F
muted
#7D7C7E