#7E4CD2#7E4CD2
#7E4CD2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.197 H 296.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4CD2 |
|---|---|
| RGB | rgb(126, 76, 210) |
| HSL | hsl(262, 60%, 56%) |
| HSV | hsv(262, 64%, 82%) |
| CMYK | cmyk(40%, 63.8%, 0%, 17.6%) |
| CIE-LAB | lab(44.60, 49.55, -61.74) |
| CIE-LCH | lch(44.60, 79.17, 308.75°) |
| OKLab | oklab(54.38% 0.0875 -0.176) |
| OKLCH | oklch(54.38% 0.197 296.4) |
| XYZ | xyz(22.8185, 14.2572, 62.5100) |
| Luminance | 0.1426 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.19
Bluish Purple
#703BE7
ΔE00 4.96
Light Indigo
#6D5ACF
ΔE00 4.97
Slate Blue
#6A5ACD
ΔE00 5.40
Blueviolet
#8A2BE2
ΔE00 5.76
Bluey Purple
#6241C7
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4CD2 #A0D24C
analogous
#4C5DD2 #7E4CD2 #C14CD2
triadic
#7E4CD2 #D27E4C #4CD27E
tetradic
#7E4CD2 #D24C5D #A0D24C #4CD2C1
square
#7E4CD2 #D24C5D #A0D24C #4CD2C1
split-complementary
#7E4CD2 #D2C14C #5DD24C
monochromatic
#452183 #5F2DB4 #7E4CD2 #A17DDE #C4AEEB
Accessibility & contrast
On white
5.45
#7E4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#7E4CD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4CD2
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4CD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4CD2 | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#696B88
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7e4cd2; /* rgb */ color: rgb(126, 76, 210); /* oklch */ color: oklch(54.4% 0.197 296.4);
Tailwind
colors: {
custom: {
50: '#a981e1',
500: '#7e4cd2',
950: '#000000',
},
}SCSS
$custom: #7e4cd2; $custom-light: #a981e1; $custom-dark: #000000;
JSON
{
"hex": "#7e4cd2",
"rgb": {
"r": 126,
"g": 76,
"b": 210
},
"hsl": {
"h": 262.388,
"s": 59.821,
"l": 56.078
},
"oklch": {
"l": 0.54383,
"c": 0.19658,
"h": 296.4
},
"luminance": 0.14258
}Semantic roles & 50–950 ramp
primary
#7E4CD2
secondary
#C4D9A1
accent
#E345A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83