#8E31DC color
The hex color #8E31DC is a moderate violet.
In the RGB color model it is made of 55.7% red, 19.2% green and 86.3% blue (142, 49, 220).
Its hue angle is 273°, with 71% saturation and 53% lightness. For print, the CMYK equivalent is 35% cyan, 78% magenta, 0% yellow and 14% black.
The closest named color is Blue Violet (#8A2BE2), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 5.8:1).
#8E31DC color codes
| HEX | #8E31DC | |
|---|---|---|
| RGB | rgb(142, 49, 220) | |
| RGB percent | rgb(55.7%, 19.2%, 86.3%) | |
| HSL | hsl(273, 71%, 53%) | |
| HSV / HSB | hsv(273, 78%, 86%) | |
| CMYK | cmyk(35%, 78%, 0%, 14%) | |
| CIE LAB | lab(42.94, 67.05, -70.09) | |
| CIE LCH | lch(42.94, 97, 313.73) | |
| CIE XYZ | xyz(25.169, 13.115, 68.902) | |
| Decimal | 9318876 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #8E31DC, 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 #8E31DC | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.62:1 | Fail | Fail | Pass |
| Sample text | 5.8:1 | Pass | Fail | Pass |
| #8E31DC as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.8:1 | Pass | Fail | Pass |
| Sample text | 3.62:1 | Fail | 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 #8E31DC looks to people with the most common types of color vision deficiency.
#0064e1Protanopia
no red cones#0065d9Deuteranopia
no green cones#7e5e86Tritanopia
no blue cones#656565Achromatopsia
no color vision
CSS examples
.background { background-color: #8e31dc; }
.text { color: #8e31dc; }
.border { border: 2px solid #8e31dc; }
.transparent { background-color: rgb(142 49 220 / 50%); }
.gradient { background: linear-gradient(to right, #8e31dc, #dc31d4); }
Similar colors
#8a2be2Blue Violet#9632ceDreamscape Purple#9932ccDark Orchid#9601f4Cosmic Heart#8822ccLilac Spring#7736d9Hokkaido Lavender#9b1dcdProm Queen#9400d3Dark Violet
Questions
- What color is #8E31DC?
- #8E31DC is a moderate violet, closest to the named color Blue Violet. It belongs to the purple family of colors.
- What is the RGB value of #8E31DC?
- The RGB value is 142, 49, 220: 142 red, 49 green and 220 blue on a 0 to 255 scale.
- What is the complementary color of #8E31DC?
- The complementary color is #7FDC31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #8E31DC?
- White text. Black text has a contrast ratio of 3.62:1 and white text 5.8:1. WCAG asks for at least 4.5:1 for normal text.