#7E51E7#7E51E7
#7E51E7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.215 H 291.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51E7 |
|---|---|
| RGB | rgb(126, 81, 231) |
| HSL | hsl(258, 76%, 61%) |
| HSV | hsv(258, 65%, 91%) |
| CMYK | cmyk(45.5%, 64.9%, 0%, 9.4%) |
| CIE-LAB | lab(47.09, 52.49, -69.66) |
| CIE-LCH | lch(47.09, 87.22, 307.00°) |
| OKLab | oklab(56.66% 0.0801 -0.1993) |
| OKLCH | oklch(56.66% 0.215 291.9) |
| XYZ | xyz(25.9664, 16.0891, 77.3232) |
| Luminance | 0.1609 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.12
Light Indigo
#6D5ACF
ΔE00 4.85
Slate Blue
#6A5ACD
ΔE00 5.39
Bluish Purple
#703BE7
ΔE00 5.53
Purpleish Blue
#6140EF
ΔE00 5.90
Dark Periwinkle
#665FD1
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51E7 #BAE751
analogous
#516FE7 #7E51E7 #C951E7
triadic
#7E51E7 #E77E51 #51E77E
tetradic
#7E51E7 #E7516F #BAE751 #51E7C9
square
#7E51E7 #E7516F #BAE751 #51E7C9
split-complementary
#7E51E7 #E7C951 #6FE751
monochromatic
#4217A7 #571EDC #7E51E7 #A687EE #CEBDF6
Accessibility & contrast
On white
4.98
#7E51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.22
#7E51E7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51E7
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51E7 | 1.00 | 4.98 | 4.22 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#5E7595
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7e51e7; /* rgb */ color: rgb(126, 81, 231); /* oklch */ color: oklch(56.7% 0.215 291.9);
Tailwind
colors: {
custom: {
50: '#ab84f0',
500: '#7e51e7',
950: '#000000',
},
}SCSS
$custom: #7e51e7; $custom-light: #ab84f0; $custom-dark: #000000;
JSON
{
"hex": "#7e51e7",
"rgb": {
"r": 126,
"g": 81,
"b": 231
},
"hsl": {
"h": 258,
"s": 75.758,
"l": 61.176
},
"oklch": {
"l": 0.56659,
"c": 0.21479,
"h": 291.9
},
"luminance": 0.1609
}Semantic roles & 50–950 ramp
primary
#7E51E7
secondary
#D5E6AE
accent
#D80E9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85