#5B4591#5B4591
#5B4591 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.1% C 0.121 H 294.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5B4591 |
|---|---|
| RGB | rgb(91, 69, 145) |
| HSL | hsl(257, 36%, 42%) |
| HSV | hsv(257, 52%, 57%) |
| CMYK | cmyk(37.2%, 52.4%, 0%, 43.1%) |
| CIE-LAB | lab(35.05, 27.62, -38.89) |
| CIE-LCH | lch(35.05, 47.70, 305.38°) |
| OKLab | oklab(45.15% 0.0499 -0.11) |
| OKLCH | oklch(45.15% 0.121 294.4) |
| XYZ | xyz(11.5520, 8.5245, 27.8193) |
| Luminance | 0.0853 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.17
Blueberry
#464196
ΔE00 4.81
Rebeccapurple
#663399
ΔE00 5.98
Twilight
#4E518B
ΔE00 6.29
Royal Purple
#7851A9
ΔE00 7.02
Ocean Blue
#4F42B5
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B4591 #7B9145
analogous
#455591 #5B4591 #814591
triadic
#5B4591 #915B45 #45915B
tetradic
#5B4591 #914555 #7B9145 #459181
square
#5B4591 #914555 #7B9145 #459181
split-complementary
#5B4591 #918145 #559145
monochromatic
#271E3E #413168 #5B4591 #7860B3 #9B89C7
Accessibility & contrast
On white
7.76
#5B4591 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#5B4591 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B4591
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B4591 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B4591 | 1.00 | 7.76 | 2.71 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#2C518F
Tritanopia (blue-blind)
#4E5464
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #5b4591; /* rgb */ color: rgb(91, 69, 145); /* oklch */ color: oklch(45.1% 0.121 294.4);
Tailwind
colors: {
custom: {
50: '#8c79b2',
500: '#5b4591',
950: '#000000',
},
}SCSS
$custom: #5b4591; $custom-light: #8c79b2; $custom-dark: #000000;
JSON
{
"hex": "#5b4591",
"rgb": {
"r": 91,
"g": 69,
"b": 145
},
"hsl": {
"h": 257.368,
"s": 35.514,
"l": 41.961
},
"oklch": {
"l": 0.45145,
"c": 0.12079,
"h": 294.4
},
"luminance": 0.08525
}Semantic roles & 50–950 ramp
primary
#5B4591
secondary
#A4B280
accent
#CC5CAB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80