#5A4E8A#5A4E8A
#5A4E8A is a mid, moderate violet. Relative luminance 0.095; OKLCH L 46.3% C 0.096 H 291.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4E8A |
|---|---|
| RGB | rgb(90, 78, 138) |
| HSL | hsl(252, 28%, 42%) |
| HSV | hsv(252, 43%, 54%) |
| CMYK | cmyk(34.8%, 43.5%, 0%, 45.9%) |
| CIE-LAB | lab(36.85, 19.69, -31.77) |
| CIE-LCH | lch(36.85, 37.38, 301.79°) |
| OKLab | oklab(46.34% 0.0349 -0.0892) |
| OKLCH | oklch(46.34% 0.096 291.4) |
| XYZ | xyz(11.5271, 9.4572, 25.2579) |
| Luminance | 0.0946 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 3.80
Dusk
#4E5481
ΔE00 5.19
Darkslateblue
#483D8B
ΔE00 6.38
Blueberry
#464196
ΔE00 6.77
Royal Purple
#7851A9
ΔE00 7.94
Ocean Blue
#4F42B5
ΔE00 9.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4E8A #7E8A4E
analogous
#4E608A #5A4E8A #784E8A
triadic
#5A4E8A #8A5A4E #4E8A5A
tetradic
#5A4E8A #8A4E60 #7E8A4E #4E8A78
square
#5A4E8A #8A4E60 #7E8A4E #4E8A78
split-complementary
#5A4E8A #8A784E #608A4E
monochromatic
#27223C #413863 #5A4E8A #776AAB #9B91C1
Accessibility & contrast
On white
7.26
#5A4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#5A4E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A4E8A
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4E8A | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B588C
Deuteranopia (green-blind)
#3C5589
Tritanopia (blue-blind)
#4E5965
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #5a4e8a; /* rgb */ color: rgb(90, 78, 138); /* oklch */ color: oklch(46.3% 0.096 291.4);
Tailwind
colors: {
custom: {
50: '#8b7fac',
500: '#5a4e8a',
950: '#000000',
},
}SCSS
$custom: #5a4e8a; $custom-light: #8b7fac; $custom-dark: #000000;
JSON
{
"hex": "#5a4e8a",
"rgb": {
"r": 90,
"g": 78,
"b": 138
},
"hsl": {
"h": 252,
"s": 27.778,
"l": 42.353
},
"oklch": {
"l": 0.46342,
"c": 0.0958,
"h": 291.4
},
"luminance": 0.09457
}Semantic roles & 50–950 ramp
primary
#5A4E8A
secondary
#A6AE86
accent
#C464B1
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F