#7E2E7E#7E2E7E
#7E2E7E is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.149 H 327.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2E7E |
|---|---|
| RGB | rgb(126, 46, 126) |
| HSL | hsl(300, 47%, 34%) |
| HSV | hsv(300, 63%, 49%) |
| CMYK | cmyk(0%, 63.5%, 0%, 50.6%) |
| CIE-LAB | lab(33.77, 45.37, -28.93) |
| CIE-LCH | lch(33.77, 53.81, 327.48°) |
| OKLab | oklab(44.83% 0.1264 -0.0798) |
| OKLCH | oklch(44.83% 0.149 327.7) |
| XYZ | xyz(13.3469, 7.8968, 20.5559) |
| Luminance | 0.0790 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 4.19
Warm Purple
#952E8F
ΔE00 4.74
Purple
#800080
ΔE00 5.19
Darkmagenta
#8B008B
ΔE00 5.21
Light Eggplant
#894585
ΔE00 5.98
Bruise
#7E4071
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2E7E #2E7E2E
analogous
#562E7E #7E2E7E #7E2E56
triadic
#7E2E7E #7E7E2E #2E7E7E
tetradic
#7E2E7E #7E562E #2E7E2E #2E567E
square
#7E2E7E #7E562E #2E7E2E #2E567E
split-complementary
#7E2E7E #567E2E #2E7E56
monochromatic
#240D24 #511E51 #7E2E7E #AB3EAB #C561C5
Accessibility & contrast
On white
8.14
#7E2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#7E2E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2E7E
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2E7E | 1.00 | 8.14 | 2.58 | 8.14 |
| #FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#244980
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#823851
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #7e2e7e; /* rgb */ color: rgb(126, 46, 126); /* oklch */ color: oklch(44.8% 0.149 327.7);
Tailwind
colors: {
custom: {
50: '#a66da4',
500: '#7e2e7e',
950: '#000000',
},
}SCSS
$custom: #7e2e7e; $custom-light: #a66da4; $custom-dark: #000000;
JSON
{
"hex": "#7e2e7e",
"rgb": {
"r": 126,
"g": 46,
"b": 126
},
"hsl": {
"h": 300,
"s": 46.512,
"l": 33.725
},
"oklch": {
"l": 0.4483,
"c": 0.14949,
"h": 327.7
},
"luminance": 0.07896
}Semantic roles & 50–950 ramp
primary
#7E2E7E
secondary
#5CAC5C
accent
#D65252
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F