#7E51E4#7E51E4
#7E51E4 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.211 H 292.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51E4 |
|---|---|
| RGB | rgb(126, 81, 228) |
| HSL | hsl(258, 73%, 61%) |
| HSV | hsv(258, 64%, 89%) |
| CMYK | cmyk(44.7%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(46.87, 51.68, -68.32) |
| CIE-LCH | lch(46.87, 85.66, 307.11°) |
| OKLab | oklab(56.43% 0.0804 -0.1954) |
| OKLCH | oklch(56.43% 0.211 292.4) |
| XYZ | xyz(25.5463, 15.9211, 75.1108) |
| Luminance | 0.1592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.12
Light Indigo
#6D5ACF
ΔE00 4.64
Slate Blue
#6A5ACD
ΔE00 5.19
Bluish Purple
#703BE7
ΔE00 5.47
Purpleish Blue
#6140EF
ΔE00 5.93
Dark Periwinkle
#665FD1
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51E4 #B7E451
analogous
#516EE4 #7E51E4 #C751E4
triadic
#7E51E4 #E47E51 #51E47E
tetradic
#7E51E4 #E4516E #B7E451 #51E4C7
square
#7E51E4 #E4516E #B7E451 #51E4C7
split-complementary
#7E51E4 #E4C751 #6EE451
monochromatic
#4319A2 #5921D7 #7E51E4 #A586EC #CDBBF4
Accessibility & contrast
On white
5.02
#7E51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#7E51E4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51E4
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51E4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51E4 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#607493
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7e51e4; /* rgb */ color: rgb(126, 81, 228); /* oklch */ color: oklch(56.4% 0.211 292.4);
Tailwind
colors: {
custom: {
50: '#ab84ed',
500: '#7e51e4',
950: '#000000',
},
}SCSS
$custom: #7e51e4; $custom-light: #ab84ed; $custom-dark: #000000;
JSON
{
"hex": "#7e51e4",
"rgb": {
"r": 126,
"g": 81,
"b": 228
},
"hsl": {
"h": 258.367,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.56431,
"c": 0.21128,
"h": 292.4
},
"luminance": 0.15922
}Semantic roles & 50–950 ramp
primary
#7E51E4
secondary
#D3E4AC
accent
#D51099
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84