#8E7ED4 color
The hex color #8E7ED4 is a light, moderate violet.
In the RGB color model it is made of 55.7% red, 49.4% green and 83.1% blue (142, 126, 212).
Its hue angle is 251°, with 50% saturation and 66% lightness. For print, the CMYK equivalent is 33% cyan, 41% magenta, 0% yellow and 17% black.
The closest named color is Medium Purple (#9370DB), a difference of 4.9 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.09:1).
#8E7ED4 color codes
| HEX | #8E7ED4 | |
|---|---|---|
| RGB | rgb(142, 126, 212) | |
| RGB percent | rgb(55.7%, 49.4%, 83.1%) | |
| HSL | hsl(251, 50%, 66%) | |
| HSV / HSB | hsv(251, 41%, 83%) | |
| CMYK | cmyk(33%, 41%, 0%, 17%) | |
| CIE LAB | lab(57.49, 25.54, -42.2) | |
| CIE LCH | lch(57.49, 49.33, 301.19) | |
| CIE XYZ | xyz(30.497, 25.425, 65.575) | |
| Decimal | 9338580 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #8E7ED4, 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 #8E7ED4 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.09:1 | Pass | Fail | Pass |
| Sample text | 3.45:1 | Fail | Fail | Pass |
| #8E7ED4 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.45:1 | Fail | Fail | Pass |
| Sample text | 6.09:1 | Pass | Fail | Pass |
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 #8E7ED4 looks to people with the most common types of color vision deficiency.
#638cd7Protanopia
no red cones#6588d2Deuteranopia
no green cones#7d8e9fTritanopia
no blue cones#8a8a8aAchromatopsia
no color vision
CSS examples
.background { background-color: #8e7ed4; }
.text { color: #8e7ed4; }
.border { border: 2px solid #8e7ed4; }
.transparent { background-color: rgb(142 126 212 / 50%); }
.gradient { background: linear-gradient(to right, #8e7ed4, #b97ed4); }
Similar colors
#9370dbMedium Purple#9370dbMatt Purple#8f8ce7Perrywinkle#8e82fePeriwinkle Purple#7a6dc0Venus Violet#9488beMagic Carpet#9c87c1Petrified Purple#966ebdViola
Questions
- What color is #8E7ED4?
- #8E7ED4 is a light, moderate violet, closest to the named color Medium Purple. It belongs to the blue family of colors.
- What is the RGB value of #8E7ED4?
- The RGB value is 142, 126, 212: 142 red, 126 green and 212 blue on a 0 to 255 scale.
- What is the complementary color of #8E7ED4?
- The complementary color is #C4D47E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #8E7ED4?
- Black text. Black text has a contrast ratio of 6.09:1 and white text 3.45:1. WCAG asks for at least 4.5:1 for normal text.