#5A428E#5A428E
#5A428E is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.3% C 0.121 H 295.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).
Color values
| HEX | #5A428E |
|---|---|
| RGB | rgb(90, 66, 142) |
| HSL | hsl(259, 37%, 41%) |
| HSV | hsv(259, 54%, 56%) |
| CMYK | cmyk(36.6%, 53.5%, 0%, 44.3%) |
| CIE-LAB | lab(34.03, 28.35, -38.69) |
| CIE-LCH | lch(34.03, 47.97, 306.23°) |
| OKLab | oklab(44.3% 0.0524 -0.1095) |
| OKLCH | oklch(44.3% 0.121 295.6) |
| XYZ | xyz(11.0459, 8.0229, 26.5526) |
| Luminance | 0.0802 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.86
Blueberry
#464196
ΔE00 4.92
Rebeccapurple
#663399
ΔE00 5.44
Twilight
#4E518B
ΔE00 6.94
Ocean Blue
#4F42B5
ΔE00 7.38
Royal Purple
#7851A9
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A428E #768E42
analogous
#42508E #5A428E #80428E
triadic
#5A428E #8E5A42 #428E5A
tetradic
#5A428E #8E4250 #768E42 #428E80
square
#5A428E #8E4250 #768E42 #428E80
split-complementary
#5A428E #8E8042 #508E42
monochromatic
#251B3A #402F64 #5A428E #765BB3 #9984C6
Accessibility & contrast
On white
8.06
#5A428E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#5A428E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A428E
8.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A428E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A428E | 1.00 | 8.06 | 2.60 | 8.06 |
| #FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#4E5161
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #5a428e; /* rgb */ color: rgb(90, 66, 142); /* oklch */ color: oklch(44.3% 0.121 295.6);
Tailwind
colors: {
custom: {
50: '#8c77af',
500: '#5a428e',
950: '#000000',
},
}SCSS
$custom: #5a428e; $custom-light: #8c77af; $custom-dark: #000000;
JSON
{
"hex": "#5a428e",
"rgb": {
"r": 90,
"g": 66,
"b": 142
},
"hsl": {
"h": 258.947,
"s": 36.538,
"l": 40.784
},
"oklch": {
"l": 0.44301,
"c": 0.12137,
"h": 295.6
},
"luminance": 0.08023
}Semantic roles & 50–950 ramp
primary
#5A428E
secondary
#A0B17B
accent
#CD5BA9
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0C0810
muted
#7D7B7F