#7E56E1#7E56E1
#7E56E1 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.201 H 292.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7E56E1 |
|---|---|
| RGB | rgb(126, 86, 225) |
| HSL | hsl(257, 70%, 61%) |
| HSV | hsv(257, 62%, 88%) |
| CMYK | cmyk(44%, 61.8%, 0%, 11.8%) |
| CIE-LAB | lab(47.66, 48.17, -65.34) |
| CIE-LCH | lch(47.66, 81.18, 306.40°) |
| OKLab | oklab(56.93% 0.0755 -0.1866) |
| OKLCH | oklch(56.93% 0.201 292) |
| XYZ | xyz(25.5188, 16.5266, 73.0650) |
| Luminance | 0.1653 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.64
Light Indigo
#6D5ACF
ΔE00 4.02
Slate Blue
#6A5ACD
ΔE00 4.61
Dark Periwinkle
#665FD1
ΔE00 5.53
Mediumslateblue
#7B68EE
ΔE00 5.68
Iris
#6258C4
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E56E1 #B9E156
analogous
#5673E1 #7E56E1 #C356E1
triadic
#7E56E1 #E17E56 #56E17E
tetradic
#7E56E1 #E15673 #B9E156 #56E1C3
square
#7E56E1 #E15673 #B9E156 #56E1C3
split-complementary
#7E56E1 #E1C356 #73E156
monochromatic
#421CA0 #5826D4 #7E56E1 #A68AEA #CDBEF3
Accessibility & contrast
On white
4.88
#7E56E1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#7E56E1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E56E1
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E56E1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E56E1 | 1.00 | 4.88 | 4.31 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#617694
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7e56e1; /* rgb */ color: rgb(126, 86, 225); /* oklch */ color: oklch(56.9% 0.201 292.0);
Tailwind
colors: {
custom: {
50: '#aa87eb',
500: '#7e56e1',
950: '#000000',
},
}SCSS
$custom: #7e56e1; $custom-light: #aa87eb; $custom-dark: #000000;
JSON
{
"hex": "#7e56e1",
"rgb": {
"r": 126,
"g": 86,
"b": 225
},
"hsl": {
"h": 257.266,
"s": 69.849,
"l": 60.98
},
"oklch": {
"l": 0.56934,
"c": 0.20131,
"h": 292
},
"luminance": 0.16527
}Semantic roles & 50–950 ramp
primary
#7E56E1
secondary
#D5E4AF
accent
#D2149B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84