#842EA7 color
The hex color #842EA7 is a moderate magenta.
In the RGB color model it is made of 51.8% red, 18% green and 65.5% blue (132, 46, 167).
Its hue angle is 283°, with 57% saturation and 42% lightness. For print, the CMYK equivalent is 21% cyan, 72% magenta, 0% yellow and 35% black.
The closest named color is Pleasant Purple (#8833AA), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.17:1).
#842EA7 color codes
| HEX | #842EA7 | |
|---|---|---|
| RGB | rgb(132, 46, 167) | |
| RGB percent | rgb(51.8%, 18%, 65.5%) | |
| HSL | hsl(283, 57%, 42%) | |
| HSV / HSB | hsv(283, 72%, 65%) | |
| CMYK | cmyk(21%, 72%, 0%, 35%) | |
| CIE LAB | lab(37.21, 54.93, -48.45) | |
| CIE LCH | lch(37.21, 73.24, 318.59) | |
| CIE XYZ | xyz(17.467, 9.65, 37.494) | |
| Decimal | 8662695 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #842EA7, 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 #842EA7 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.93:1 | Fail | Fail | Fail |
| Sample text | 7.17:1 | Pass | Pass | Pass |
| #842EA7 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.17:1 | Pass | Pass | Pass |
| Sample text | 2.93: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 #842EA7 looks to people with the most common types of color vision deficiency.
#0053aaProtanopia
no red cones#275aa4Deuteranopia
no green cones#814868Tritanopia
no blue cones#585858Achromatopsia
no color vision
CSS examples
.background { background-color: #842ea7; }
.text { color: #842ea7; }
.border { border: 2px solid #842ea7; }
.transparent { background-color: rgb(132 46 167 / 50%); }
.gradient { background: linear-gradient(to right, #842ea7, #a72e8d); }
Similar colors
#8833aaPleasant Purple#7733aaPurple Pristine#7737aaShredder Lavender#7722aaFuchsia Nebula#772299Orb of Discord#6f2da8Grape#9a2ca0Purple Ink#81459ePurple Pleasures
Questions
- What color is #842EA7?
- #842EA7 is a moderate magenta, closest to the named color Pleasant Purple. It belongs to the purple family of colors.
- What is the RGB value of #842EA7?
- The RGB value is 132, 46, 167: 132 red, 46 green and 167 blue on a 0 to 255 scale.
- What is the complementary color of #842EA7?
- The complementary color is #51A72E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #842EA7?
- White text. Black text has a contrast ratio of 2.93:1 and white text 7.17:1. WCAG asks for at least 4.5:1 for normal text.