#5B4095#5B4095
#5B4095 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.5% C 0.134 H 295.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).
Color values
| HEX | #5B4095 |
|---|---|
| RGB | rgb(91, 64, 149) |
| HSL | hsl(259, 40%, 42%) |
| HSV | hsv(259, 57%, 58%) |
| CMYK | cmyk(38.9%, 57%, 0%, 41.6%) |
| CIE-LAB | lab(34.11, 31.82, -42.84) |
| CIE-LCH | lch(34.11, 53.36, 306.61°) |
| OKLab | oklab(44.53% 0.0568 -0.1216) |
| OKLCH | oklch(44.53% 0.134 295) |
| XYZ | xyz(11.5712, 8.0606, 29.3742) |
| Luminance | 0.0806 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.97
Rebeccapurple
#663399
ΔE00 4.36
Blueberry
#464196
ΔE00 4.60
Ocean Blue
#4F42B5
ΔE00 6.13
Royal Purple
#7851A9
ΔE00 7.38
Twilight
#4E518B
ΔE00 7.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B4095 #7A9540
analogous
#405095 #5B4095 #864095
triadic
#5B4095 #955B40 #40955B
tetradic
#5B4095 #954050 #7A9540 #409586
square
#5B4095 #954050 #7A9540 #409586
split-complementary
#5B4095 #958640 #509540
monochromatic
#271B3F #412E6A #5B4095 #785AB8 #9B85CB
Accessibility & contrast
On white
8.04
#5B4095 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#5B4095 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5B4095
8.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B4095 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B4095 | 1.00 | 8.04 | 2.61 | 8.04 |
| #FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#175198
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#4D5264
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #5b4095; /* rgb */ color: rgb(91, 64, 149); /* oklch */ color: oklch(44.5% 0.134 295.0);
Tailwind
colors: {
custom: {
50: '#8d76b5',
500: '#5b4095',
950: '#000000',
},
}SCSS
$custom: #5b4095; $custom-light: #8d76b5; $custom-dark: #000000;
JSON
{
"hex": "#5b4095",
"rgb": {
"r": 91,
"g": 64,
"b": 149
},
"hsl": {
"h": 259.059,
"s": 39.906,
"l": 41.765
},
"oklch": {
"l": 0.44528,
"c": 0.13419,
"h": 295
},
"luminance": 0.08061
}Semantic roles & 50–950 ramp
primary
#5B4095
secondary
#A3B57C
accent
#D058AA
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80