#842EA7 color

#842EA7 rgb(132, 46, 167)
Shades of purple

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
RGBrgb(132, 46, 167)
RGB percentrgb(51.8%, 18%, 65.5%)
HSLhsl(283, 57%, 42%)
HSV / HSBhsv(283, 72%, 65%)
CMYKcmyk(21%, 72%, 0%, 35%)
CIE LABlab(37.21, 54.93, -48.45)
CIE LCHlch(37.21, 73.24, 318.59)
CIE XYZxyz(17.467, 9.65, 37.494)
Decimal8662695
Short hexNone (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 #842EA7RatioAAAAAAA large
Sample text2.93:1FailFailFail
Sample text7.17:1PassPassPass
#842EA7 as text onRatioAAAAAAA large
Sample text7.17:1PassPassPass
Sample text2.93:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.