#5E42E2#5E42E2
#5E42E2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.3% C 0.228 H 282.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5E42E2 |
|---|---|
| RGB | rgb(94, 66, 226) |
| HSL | hsl(251, 73%, 57%) |
| HSV | hsv(251, 71%, 89%) |
| CMYK | cmyk(58.4%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(40.84, 53.81, -77.15) |
| CIE-LCH | lch(40.84, 94.06, 304.89°) |
| OKLab | oklab(51.35% 0.0507 -0.2223) |
| OKLCH | oklch(51.35% 0.228 282.8) |
| XYZ | xyz(20.2875, 11.7658, 73.1387) |
| Luminance | 0.1177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.67
Purpley Blue
#5F34E7
ΔE00 2.74
Bluish Purple
#703BE7
ΔE00 2.84
Burple
#6832E3
ΔE00 3.30
Bluey Purple
#6241C7
ΔE00 3.63
Blurple
#5539CC
ΔE00 4.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5E42E2 #C6E242
analogous
#4276E2 #5E42E2 #AE42E2
triadic
#5E42E2 #E25E42 #42E25E
tetradic
#5E42E2 #E24276 #C6E242 #42E2AE
square
#5E42E2 #E24276 #C6E242 #42E2AE
split-complementary
#5E42E2 #E2AE42 #76E242
monochromatic
#2C1793 #3C1FC8 #5E42E2 #8B77EA #B8ACF2
Accessibility & contrast
On white
6.26
#5E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#5E42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5E42E2
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5E42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5E42E2 | 1.00 | 6.26 | 3.35 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005BDF
Tritanopia (blue-blind)
#016D8E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5e42e2; /* rgb */ color: rgb(94, 66, 226); /* oklch */ color: oklch(51.3% 0.228 282.8);
Tailwind
colors: {
custom: {
50: '#9979ec',
500: '#5e42e2',
950: '#000000',
},
}SCSS
$custom: #5e42e2; $custom-light: #9979ec; $custom-dark: #000000;
JSON
{
"hex": "#5e42e2",
"rgb": {
"r": 94,
"g": 66,
"b": 226
},
"hsl": {
"h": 250.5,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.51345,
"c": 0.22798,
"h": 282.8
},
"luminance": 0.11767
}Semantic roles & 50–950 ramp
primary
#5E42E2
secondary
#D5E09F
accent
#F038D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84