#5A4E95#5A4E95
#5A4E95 is a mid, moderate violet. Relative luminance 0.098; OKLCH L 47.0% C 0.112 H 289.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4E95 |
|---|---|
| RGB | rgb(90, 78, 149) |
| HSL | hsl(250, 31%, 45%) |
| HSV | hsv(250, 48%, 58%) |
| CMYK | cmyk(39.6%, 47.7%, 0%, 41.6%) |
| CIE-LAB | lab(37.47, 22.89, -37.47) |
| CIE-LCH | lch(37.47, 43.91, 301.41°) |
| OKLab | oklab(47.01% 0.0367 -0.1059) |
| OKLCH | oklch(47.01% 0.112 289.1) |
| XYZ | xyz(12.3642, 9.7920, 29.6665) |
| Luminance | 0.0979 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 3.90
Blueberry
#464196
ΔE00 5.35
Darkslateblue
#483D8B
ΔE00 5.68
Dusk
#4E5481
ΔE00 6.14
Royal Purple
#7851A9
ΔE00 6.87
Ocean Blue
#4F42B5
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4E95 #89954E
analogous
#4E6695 #5A4E95 #7E4E95
triadic
#5A4E95 #955A4E #4E955A
tetradic
#5A4E95 #954E66 #89954E #4E957E
square
#5A4E95 #954E66 #89954E #4E957E
split-complementary
#5A4E95 #957E4E #66954E
monochromatic
#292445 #42396D #5A4E95 #796DB3 #9E96C8
Accessibility & contrast
On white
7.10
#5A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#5A4E95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A4E95
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4E95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4E95 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#345A98
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#4A5C6A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #5a4e95; /* rgb */ color: rgb(90, 78, 149); /* oklch */ color: oklch(47.0% 0.112 289.1);
Tailwind
colors: {
custom: {
50: '#8c7fb4',
500: '#5a4e95',
950: '#000000',
},
}SCSS
$custom: #5a4e95; $custom-light: #8c7fb4; $custom-dark: #000000;
JSON
{
"hex": "#5a4e95",
"rgb": {
"r": 90,
"g": 78,
"b": 149
},
"hsl": {
"h": 250.141,
"s": 31.278,
"l": 44.51
},
"oklch": {
"l": 0.47008,
"c": 0.11205,
"h": 289.1
},
"luminance": 0.09792
}Semantic roles & 50–950 ramp
primary
#5A4E95
secondary
#ADB48A
accent
#C760B6
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A11
muted
#7D7C80