#5B4C8A#5B4C8A
#5B4C8A is a mid, moderate violet. Relative luminance 0.092; OKLCH L 46.0% C 0.099 H 293.2°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5B4C8A |
|---|---|
| RGB | rgb(91, 76, 138) |
| HSL | hsl(255, 29%, 42%) |
| HSV | hsv(255, 45%, 54%) |
| CMYK | cmyk(34.1%, 44.9%, 0%, 45.9%) |
| CIE-LAB | lab(36.42, 21.25, -32.44) |
| CIE-LCH | lch(36.42, 38.78, 303.22°) |
| OKLab | oklab(46.04% 0.0391 -0.0911) |
| OKLCH | oklch(46.04% 0.099 293.2) |
| XYZ | xyz(11.4851, 9.2278, 25.2159) |
| Luminance | 0.0923 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 4.48
Dusk
#4E5481
ΔE00 5.96
Darkslateblue
#483D8B
ΔE00 5.99
Blueberry
#464196
ΔE00 6.55
Royal Purple
#7851A9
ΔE00 7.62
Rebeccapurple
#663399
ΔE00 8.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B4C8A #7B8A4C
analogous
#4C5C8A #5B4C8A #7A4C8A
triadic
#5B4C8A #8A5B4C #4C8A5B
tetradic
#5B4C8A #8A4C5C #7B8A4C #4C8A7A
square
#5B4C8A #8A4C5C #7B8A4C #4C8A7A
split-complementary
#5B4C8A #8A7A4C #5C8A4C
monochromatic
#27213B #413663 #5B4C8A #7868AC #9B8FC1
Accessibility & contrast
On white
7.38
#5B4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#5B4C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B4C8A
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B4C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B4C8A | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#38568C
Deuteranopia (green-blind)
#3A5588
Tritanopia (blue-blind)
#505864
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #5b4c8a; /* rgb */ color: rgb(91, 76, 138); /* oklch */ color: oklch(46.0% 0.099 293.2);
Tailwind
colors: {
custom: {
50: '#8b7eac',
500: '#5b4c8a',
950: '#000000',
},
}SCSS
$custom: #5b4c8a; $custom-light: #8b7eac; $custom-dark: #000000;
JSON
{
"hex": "#5b4c8a",
"rgb": {
"r": 91,
"g": 76,
"b": 138
},
"hsl": {
"h": 254.516,
"s": 28.972,
"l": 41.961
},
"oklch": {
"l": 0.46039,
"c": 0.09919,
"h": 293.2
},
"luminance": 0.09228
}Semantic roles & 50–950 ramp
primary
#5B4C8A
secondary
#A4AE84
accent
#C563AD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F