#5A4EA2#5A4EA2
#5A4EA2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.131 H 286.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5A4EA2 |
|---|---|
| RGB | rgb(90, 78, 162) |
| HSL | hsl(249, 35%, 47%) |
| HSV | hsv(249, 52%, 64%) |
| CMYK | cmyk(44.4%, 51.9%, 0%, 36.5%) |
| CIE-LAB | lab(38.25, 26.77, -44.04) |
| CIE-LCH | lch(38.25, 51.54, 301.30°) |
| OKLab | oklab(47.85% 0.0381 -0.1251) |
| OKLCH | oklch(47.85% 0.131 286.9) |
| XYZ | xyz(13.4606, 10.2306, 35.4409) |
| Luminance | 0.1023 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.95
Ocean Blue
#4F42B5
ΔE00 5.26
Twilight
#4E518B
ΔE00 5.31
Iris
#6258C4
ΔE00 6.07
Darkslateblue
#483D8B
ΔE00 6.12
Royal Purple
#7851A9
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A4EA2 #96A24E
analogous
#4E6CA2 #5A4EA2 #844EA2
triadic
#5A4EA2 #A25A4E #4EA25A
tetradic
#5A4EA2 #A24E6C #96A24E #4EA284
square
#5A4EA2 #A24E6C #96A24E #4EA284
split-complementary
#5A4EA2 #A2844E #6CA24E
monochromatic
#2C264F #433A79 #5A4EA2 #7D72BB #A39BCF
Accessibility & contrast
On white
6.89
#5A4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.05
#5A4EA2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A4EA2
6.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A4EA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A4EA2 | 1.00 | 6.89 | 3.05 | 6.89 |
| #FFFFFF | 6.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#446070
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #5a4ea2; /* rgb */ color: rgb(90, 78, 162); /* oklch */ color: oklch(47.9% 0.131 286.9);
Tailwind
colors: {
custom: {
50: '#8d80be',
500: '#5a4ea2',
950: '#000000',
},
}SCSS
$custom: #5a4ea2; $custom-light: #8d80be; $custom-dark: #000000;
JSON
{
"hex": "#5a4ea2",
"rgb": {
"r": 90,
"g": 78,
"b": 162
},
"hsl": {
"h": 248.571,
"s": 35,
"l": 47.059
},
"oklch": {
"l": 0.47853,
"c": 0.13077,
"h": 286.9
},
"luminance": 0.10231
}Semantic roles & 50–950 ramp
primary
#5A4EA2
secondary
#B5BC90
accent
#CB5DBB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81