#7E2E71 color
The hex color #7E2E71 is a dark, desaturated magenta.
In the RGB color model it is made of 49.4% red, 18% green and 44.3% blue (126, 46, 113).
Its hue angle is 310°, with 47% saturation and 34% lightness. For print, the CMYK equivalent is 0% cyan, 63% magenta, 10% yellow and 51% black.
The closest named color is Violet Vixen (#883377), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.35:1).
#7E2E71 color codes
| HEX | #7E2E71 | |
|---|---|---|
| RGB | rgb(126, 46, 113) | |
| RGB percent | rgb(49.4%, 18%, 44.3%) | |
| HSL | hsl(310, 47%, 34%) | |
| HSV / HSB | hsv(310, 63%, 49%) | |
| CMYK | cmyk(0%, 63%, 10%, 51%) | |
| CIE LAB | lab(33.1, 43.06, -21.81) | |
| CIE LCH | lch(33.1, 48.26, 333.14) | |
| CIE XYZ | xyz(12.562, 7.583, 16.422) | |
| Decimal | 8269425 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #7E2E71, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #7E2E71 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.52:1 | Fail | Fail | Fail |
| Sample text | 8.35:1 | Pass | Pass | Pass |
| #7E2E71 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.35:1 | Pass | Pass | Pass |
| Sample text | 2.52:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #7E2E71 looks to people with the most common types of color vision deficiency.
#2d4673Protanopia
no red cones#47526fDeuteranopia
no green cones#84334bTritanopia
no blue cones#4e4e4eAchromatopsia
no color vision
CSS examples
.background { background-color: #7e2e71; }
.text { color: #7e2e71; }
.border { border: 2px solid #7e2e71; }
.transparent { background-color: rgb(126 46 113 / 50%); }
.gradient { background: linear-gradient(to right, #7e2e71, #7e2e49); }
Similar colors
#883377Violet Vixen#871f78Noble Plum#702963Byzantium#853682Purple Sultan#881177Royal Purpleness#802280Hello Darkness My Old Friend#871466Bane of Royalty#6e3974Eminence
Questions
- What color is #7E2E71?
- #7E2E71 is a dark, desaturated magenta, closest to the named color Violet Vixen. It belongs to the purple family of colors.
- What is the RGB value of #7E2E71?
- The RGB value is 126, 46, 113: 126 red, 46 green and 113 blue on a 0 to 255 scale.
- What is the complementary color of #7E2E71?
- The complementary color is #2E7E3B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #7E2E71?
- White text. Black text has a contrast ratio of 2.52:1 and white text 8.35:1. WCAG asks for at least 4.5:1 for normal text.