#7E56E5#7E56E5
#7E56E5 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.206 H 291.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #7E56E5 |
|---|---|
| RGB | rgb(126, 86, 229) |
| HSL | hsl(257, 73%, 62%) |
| HSV | hsv(257, 62%, 90%) |
| CMYK | cmyk(45%, 62.4%, 0%, 10.2%) |
| CIE-LAB | lab(47.94, 49.27, -67.15) |
| CIE-LCH | lch(47.94, 83.28, 306.27°) |
| OKLab | oklab(57.23% 0.0752 -0.1919) |
| OKLCH | oklch(57.23% 0.206 291.4) |
| XYZ | xyz(26.0709, 16.7475, 75.9725) |
| Luminance | 0.1675 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.62
Light Indigo
#6D5ACF
ΔE00 4.34
Slate Blue
#6A5ACD
ΔE00 4.92
Mediumslateblue
#7B68EE
ΔE00 5.42
Dark Periwinkle
#665FD1
ΔE00 5.69
Bluish Purple
#703BE7
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E56E5 #BDE556
analogous
#5676E5 #7E56E5 #C556E5
triadic
#7E56E5 #E57E56 #56E57E
tetradic
#7E56E5 #E55676 #BDE556 #56E5C5
square
#7E56E5 #E55676 #BDE556 #56E5C5
split-complementary
#7E56E5 #E5C556 #76E556
monochromatic
#411AA7 #5622DC #7E56E5 #A68BED #CFC0F5
Accessibility & contrast
On white
4.83
#7E56E5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#7E56E5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E56E5
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E56E5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E56E5 | 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)
#0074EA
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#5F7796
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7e56e5; /* rgb */ color: rgb(126, 86, 229); /* oklch */ color: oklch(57.2% 0.206 291.4);
Tailwind
colors: {
custom: {
50: '#ab88ee',
500: '#7e56e5',
950: '#000000',
},
}SCSS
$custom: #7e56e5; $custom-light: #ab88ee; $custom-dark: #000000;
JSON
{
"hex": "#7e56e5",
"rgb": {
"r": 126,
"g": 86,
"b": 229
},
"hsl": {
"h": 256.783,
"s": 73.333,
"l": 61.765
},
"oklch": {
"l": 0.57228,
"c": 0.20613,
"h": 291.4
},
"luminance": 0.16748
}Semantic roles & 50–950 ramp
primary
#7E56E5
secondary
#D7E6B1
accent
#D5109E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84