#7E4BB2#7E4BB2
#7E4BB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.160 H 304.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4BB2 |
|---|---|
| RGB | rgb(126, 75, 178) |
| HSL | hsl(270, 41%, 50%) |
| HSV | hsv(270, 58%, 70%) |
| CMYK | cmyk(29.2%, 57.9%, 0%, 30.2%) |
| CIE-LAB | lab(42.28, 41.93, -46.87) |
| CIE-LCH | lch(42.28, 62.89, 311.82°) |
| OKLab | oklab(52.02% 0.0901 -0.1323) |
| OKLCH | oklch(52.02% 0.16 304.2) |
| XYZ | xyz(19.1544, 12.6822, 43.5497) |
| Luminance | 0.1268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.55
Purply
#983FB2
ΔE00 5.64
Deep Lavender
#8D5EB7
ΔE00 6.30
Darkorchid
#9932CC
ΔE00 6.71
Bluey Purple
#6241C7
ΔE00 7.15
Light Indigo
#6D5ACF
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4BB2 #7FB24B
analogous
#4B4CB2 #7E4BB2 #B24BB2
triadic
#7E4BB2 #B27E4B #4BB27E
tetradic
#7E4BB2 #B24B4C #7FB24B #4BB2B2
square
#7E4BB2 #B24B4C #7FB24B #4BB2B2
split-complementary
#7E4BB2 #B2B24B #4CB24B
monochromatic
#41275C #603987 #7E4BB2 #9D75C5 #BBA0D7
Accessibility & contrast
On white
5.94
#7E4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.54
#7E4BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4BB2
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4BB2 | 1.00 | 5.94 | 3.54 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#3564B0
Tritanopia (blue-blind)
#755F77
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7e4bb2; /* rgb */ color: rgb(126, 75, 178); /* oklch */ color: oklch(52.0% 0.160 304.2);
Tailwind
colors: {
custom: {
50: '#a77fca',
500: '#7e4bb2',
950: '#000000',
},
}SCSS
$custom: #7e4bb2; $custom-light: #a77fca; $custom-dark: #000000;
JSON
{
"hex": "#7e4bb2",
"rgb": {
"r": 126,
"g": 75,
"b": 178
},
"hsl": {
"h": 269.709,
"s": 40.711,
"l": 49.608
},
"oklch": {
"l": 0.5202,
"c": 0.16009,
"h": 304.2
},
"luminance": 0.12682
}Semantic roles & 50–950 ramp
primary
#7E4BB2
secondary
#ADC495
accent
#D15794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82