#7E5EF8#7E5EF8
#7E5EF8 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.219 H 287.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #7E5EF8 |
|---|---|
| RGB | rgb(126, 94, 248) |
| HSL | hsl(252, 92%, 67%) |
| HSV | hsv(252, 62%, 97%) |
| CMYK | cmyk(49.2%, 62.1%, 0%, 2.7%) |
| CIE-LAB | lab(50.94, 50.17, -72.94) |
| CIE-LCH | lch(50.94, 88.52, 304.52°) |
| OKLab | oklab(59.84% 0.0655 -0.2089) |
| OKLCH | oklch(59.84% 0.219 287.4) |
| XYZ | xyz(29.5452, 19.2170, 90.9412) |
| Luminance | 0.1922 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.95
Purpley
#8756E4
ΔE00 4.01
Light Indigo
#6D5ACF
ΔE00 6.60
Lighter Purple
#A55AF4
ΔE00 6.76
Dark Periwinkle
#665FD1
ΔE00 6.81
Slate Blue
#6A5ACD
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E5EF8 #D8F85E
analogous
#5E8BF8 #7E5EF8 #CB5EF8
triadic
#7E5EF8 #F87E5E #5EF87E
tetradic
#7E5EF8 #F85E8B #D8F85E #5EF8CB
square
#7E5EF8 #F85E8B #D8F85E #5EF8CB
split-complementary
#7E5EF8 #F8CB5E #8BF85E
monochromatic
#3309D2 #4F23F5 #7E5EF8 #AD99FB #DCD3FD
Accessibility & contrast
On white
4.34
#7E5EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#7E5EF8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E5EF8
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E5EF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E5EF8 | 1.00 | 4.34 | 4.84 | 4.84 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0075F5
Tritanopia (blue-blind)
#5383A2
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7e5ef8; /* rgb */ color: rgb(126, 94, 248); /* oklch */ color: oklch(59.8% 0.219 287.4);
Tailwind
colors: {
custom: {
50: '#ac8dfc',
500: '#7e5ef8',
950: '#000000',
},
}SCSS
$custom: #7e5ef8; $custom-light: #ac8dfc; $custom-dark: #000000;
JSON
{
"hex": "#7e5ef8",
"rgb": {
"r": 126,
"g": 94,
"b": 248
},
"hsl": {
"h": 252.468,
"s": 91.667,
"l": 67.059
},
"oklch": {
"l": 0.59836,
"c": 0.21897,
"h": 287.4
},
"luminance": 0.19218
}Semantic roles & 50–950 ramp
primary
#7E5EF8
secondary
#E7F1C0
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86