#7E42E2#7E42E2
#7E42E2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.227 H 294.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #7E42E2 |
|---|---|
| RGB | rgb(126, 66, 226) |
| HSL | hsl(263, 73%, 57%) |
| HSV | hsv(263, 71%, 89%) |
| CMYK | cmyk(44.2%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(43.98, 58.72, -71.90) |
| CIE-LCH | lch(43.98, 92.83, 309.24°) |
| OKLab | oklab(54.31% 0.0952 -0.2058) |
| OKLCH | oklch(54.31% 0.227 294.8) |
| XYZ | xyz(24.2762, 13.8224, 73.3257) |
| Luminance | 0.1382 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 2.73
Blueviolet
#8A2BE2
ΔE00 3.77
Purpleish Blue
#6140EF
ΔE00 4.44
Burple
#6832E3
ΔE00 4.81
Purpley
#8756E4
ΔE00 5.11
Purpley Blue
#5F34E7
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E42E2 #A6E242
analogous
#4256E2 #7E42E2 #CE42E2
triadic
#7E42E2 #E27E42 #42E27E
tetradic
#7E42E2 #E24256 #A6E242 #42E2CE
square
#7E42E2 #E24256 #A6E242 #42E2CE
split-complementary
#7E42E2 #E2CE42 #56E242
monochromatic
#451793 #5E1FC8 #7E42E2 #A277EA #C6ACF2
Accessibility & contrast
On white
5.58
#7E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#7E42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E42E2
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E42E2 | 1.00 | 5.58 | 3.76 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#626B8E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #7e42e2; /* rgb */ color: rgb(126, 66, 226); /* oklch */ color: oklch(54.3% 0.227 294.8);
Tailwind
colors: {
custom: {
50: '#ab7bec',
500: '#7e42e2',
950: '#000000',
},
}SCSS
$custom: #7e42e2; $custom-light: #ab7bec; $custom-dark: #000000;
JSON
{
"hex": "#7e42e2",
"rgb": {
"r": 126,
"g": 66,
"b": 226
},
"hsl": {
"h": 262.5,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.54313,
"c": 0.22678,
"h": 294.8
},
"luminance": 0.13823
}Semantic roles & 50–950 ramp
primary
#7E42E2
secondary
#C8E09F
accent
#F038AB
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84