#7E5EF2#7E5EF2
#7E5EF2 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.4% C 0.212 H 288.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5EF2 |
|---|---|
| RGB | rgb(126, 94, 242) |
| HSL | hsl(253, 85%, 66%) |
| HSV | hsv(253, 61%, 95%) |
| CMYK | cmyk(47.9%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(50.51, 48.48, -70.28) |
| CIE-LCH | lch(50.51, 85.38, 304.60°) |
| OKLab | oklab(59.39% 0.0659 -0.2011) |
| OKLCH | oklch(59.39% 0.212 288.1) |
| XYZ | xyz(28.6293, 18.8506, 86.1172) |
| Luminance | 0.1885 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.86
Purpley
#8756E4
ΔE00 3.44
Light Indigo
#6D5ACF
ΔE00 5.91
Dark Periwinkle
#665FD1
ΔE00 6.23
Slate Blue
#6A5ACD
ΔE00 6.41
Lighter Purple
#A55AF4
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5EF2 #D2F25E
analogous
#5E88F2 #7E5EF2 #C85EF2
triadic
#7E5EF2 #F27E5E #5EF27E
tetradic
#7E5EF2 #F25E88 #D2F25E #5EF2C8
square
#7E5EF2 #F25E88 #D2F25E #5EF2C8
split-complementary
#7E5EF2 #F2C85E #88F25E
monochromatic
#3710C6 #5125ED #7E5EF2 #AB97F7 #D9CFFB
Accessibility & contrast
On white
4.40
#7E5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#7E5EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E5EF2
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E5EF2 | 1.00 | 4.40 | 4.77 | 4.77 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#57819F
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7e5ef2; /* rgb */ color: rgb(126, 94, 242); /* oklch */ color: oklch(59.4% 0.212 288.1);
Tailwind
colors: {
custom: {
50: '#ac8df7',
500: '#7e5ef2',
950: '#000000',
},
}SCSS
$custom: #7e5ef2; $custom-light: #ac8df7; $custom-dark: #000000;
JSON
{
"hex": "#7e5ef2",
"rgb": {
"r": 126,
"g": 94,
"b": 242
},
"hsl": {
"h": 252.973,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.5939,
"c": 0.21168,
"h": 288.1
},
"luminance": 0.18852
}Semantic roles & 50–950 ramp
primary
#7E5EF2
secondary
#E4EEBD
accent
#E204B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85