#7E56F2#7E56F2
#7E56F2 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.2% C 0.222 H 289.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7E56F2 |
|---|---|
| RGB | rgb(126, 86, 242) |
| HSL | hsl(255, 86%, 64%) |
| HSV | hsv(255, 64%, 95%) |
| CMYK | cmyk(47.9%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(48.89, 52.83, -72.93) |
| CIE-LCH | lch(48.89, 90.05, 305.92°) |
| OKLab | oklab(58.21% 0.0739 -0.2089) |
| OKLCH | oklch(58.21% 0.222 289.5) |
| XYZ | xyz(27.9544, 17.5009, 85.8923) |
| Luminance | 0.1750 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.49
Mediumslateblue
#7B68EE
ΔE00 4.91
Light Indigo
#6D5ACF
ΔE00 5.60
Slate Blue
#6A5ACD
ΔE00 6.13
Dark Periwinkle
#665FD1
ΔE00 6.50
Lighter Purple
#A55AF4
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E56F2 #CAF256
analogous
#567CF2 #7E56F2 #CC56F2
triadic
#7E56F2 #F27E56 #56F27E
tetradic
#7E56F2 #F2567C #CAF256 #56F2CC
square
#7E56F2 #F2567C #CAF256 #56F2CC
split-complementary
#7E56F2 #F2CC56 #7CF256
monochromatic
#3C0FBF #531DEE #7E56F2 #A98FF6 #D5C8FB
Accessibility & contrast
On white
4.67
#7E56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.50
#7E56F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7E56F2
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E56F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E56F2 | 1.00 | 4.67 | 4.50 | 4.67 |
| #FFFFFF | 4.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#0070EF
Tritanopia (blue-blind)
#577C9D
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7e56f2; /* rgb */ color: rgb(126, 86, 242); /* oklch */ color: oklch(58.2% 0.222 289.5);
Tailwind
colors: {
custom: {
50: '#ac88f7',
500: '#7e56f2',
950: '#000000',
},
}SCSS
$custom: #7e56f2; $custom-light: #ac88f7; $custom-dark: #000000;
JSON
{
"hex": "#7e56f2",
"rgb": {
"r": 126,
"g": 86,
"b": 242
},
"hsl": {
"h": 255.385,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.58209,
"c": 0.22161,
"h": 289.5
},
"luminance": 0.17502
}Semantic roles & 50–950 ramp
primary
#7E56F2
secondary
#DFEDB7
accent
#E203A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85