#5E4EA2#5E4EA2
#5E4EA2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.2% C 0.131 H 289.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).
Color values
| HEX | #5E4EA2 |
|---|---|
| RGB | rgb(94, 78, 162) |
| HSL | hsl(251, 35%, 47%) |
| HSV | hsv(251, 52%, 64%) |
| CMYK | cmyk(42%, 51.9%, 0%, 36.5%) |
| CIE-LAB | lab(38.61, 27.77, -43.44) |
| CIE-LCH | lch(38.61, 51.55, 302.59°) |
| OKLab | oklab(48.21% 0.0432 -0.1232) |
| OKLCH | oklch(48.21% 0.131 289.3) |
| XYZ | xyz(13.8603, 10.4366, 35.4596) |
| Luminance | 0.1044 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueberry
#464196
ΔE00 5.50
Ocean Blue
#4F42B5
ΔE00 5.60
Royal Purple
#7851A9
ΔE00 5.61
Twilight
#4E518B
ΔE00 5.79
Iris
#6258C4
ΔE00 6.14
Darkslateblue
#483D8B
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E4EA2 #92A24E
analogous
#4E68A2 #5E4EA2 #884EA2
triadic
#5E4EA2 #A25E4E #4EA25E
tetradic
#5E4EA2 #A24E68 #92A24E #4EA288
square
#5E4EA2 #A24E68 #92A24E #4EA288
split-complementary
#5E4EA2 #A2884E #68A24E
monochromatic
#2E264F #463A79 #5E4EA2 #8072BB #A59BCF
Accessibility & contrast
On white
6.80
#5E4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#5E4EA2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5E4EA2
6.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E4EA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E4EA2 | 1.00 | 6.80 | 3.09 | 6.80 |
| #FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#4B5F70
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5e4ea2; /* rgb */ color: rgb(94, 78, 162); /* oklch */ color: oklch(48.2% 0.131 289.3);
Tailwind
colors: {
custom: {
50: '#9080be',
500: '#5e4ea2',
950: '#000000',
},
}SCSS
$custom: #5e4ea2; $custom-light: #9080be; $custom-dark: #000000;
JSON
{
"hex": "#5e4ea2",
"rgb": {
"r": 94,
"g": 78,
"b": 162
},
"hsl": {
"h": 251.429,
"s": 35,
"l": 47.059
},
"oklch": {
"l": 0.48211,
"c": 0.13059,
"h": 289.3
},
"luminance": 0.10437
}Semantic roles & 50–950 ramp
primary
#5E4EA2
secondary
#B3BC90
accent
#CB5DB6
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81