#7E51F2#7E51F2
#7E51F2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.5% C 0.228 H 290.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7E51F2 |
|---|---|
| RGB | rgb(126, 81, 242) |
| HSL | hsl(257, 86%, 63%) |
| HSV | hsv(257, 67%, 95%) |
| CMYK | cmyk(47.9%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.92, 55.47, -74.50) |
| CIE-LCH | lch(47.92, 92.88, 306.67°) |
| OKLab | oklab(57.51% 0.0786 -0.2135) |
| OKLCH | oklch(57.51% 0.228 290.2) |
| XYZ | xyz(27.5691, 16.7302, 85.7638) |
| Luminance | 0.1673 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.64
Light Indigo
#6D5ACF
ΔE00 5.78
Bluish Purple
#703BE7
ΔE00 6.01
Purpleish Blue
#6140EF
ΔE00 6.08
Mediumslateblue
#7B68EE
ΔE00 6.12
Slate Blue
#6A5ACD
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E51F2 #C5F251
analogous
#5174F2 #7E51F2 #CE51F2
triadic
#7E51F2 #F27E51 #51F27E
tetradic
#7E51F2 #F25174 #C5F251 #51F2CE
square
#7E51F2 #F25174 #C5F251 #51F2CE
split-complementary
#7E51F2 #F2CE51 #74F251
monochromatic
#3E0EBB #5418EE #7E51F2 #A88AF6 #D2C3FB
Accessibility & contrast
On white
4.83
#7E51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#7E51F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E51F2
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E51F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E51F2 | 1.00 | 4.83 | 4.35 | 4.83 |
| #FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#58799B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7e51f2; /* rgb */ color: rgb(126, 81, 242); /* oklch */ color: oklch(57.5% 0.228 290.2);
Tailwind
colors: {
custom: {
50: '#ac85f7',
500: '#7e51f2',
950: '#000000',
},
}SCSS
$custom: #7e51f2; $custom-light: #ac85f7; $custom-dark: #000000;
JSON
{
"hex": "#7e51f2",
"rgb": {
"r": 126,
"g": 81,
"b": 242
},
"hsl": {
"h": 256.77,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57513,
"c": 0.22757,
"h": 290.2
},
"luminance": 0.16731
}Semantic roles & 50–950 ramp
primary
#7E51F2
secondary
#DCECB3
accent
#E303A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85