#804EB2 color
The hex color #804EB2 is a desaturated violet.
In the RGB color model it is made of 50.2% red, 30.6% green and 69.8% blue (128, 78, 178).
Its hue angle is 270°, with 39% saturation and 50% lightness. For print, the CMYK equivalent is 28% cyan, 56% magenta, 0% yellow and 30% black.
The closest named color is Royal Purple (#7851A9), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 5.75:1).
#804EB2 color codes
| HEX | #804EB2 | |
|---|---|---|
| RGB | rgb(128, 78, 178) | |
| RGB percent | rgb(50.2%, 30.6%, 69.8%) | |
| HSL | hsl(270, 39%, 50%) | |
| HSV / HSB | hsv(270, 56%, 70%) | |
| CMYK | cmyk(28%, 56%, 0%, 30%) | |
| CIE LAB | lab(43.14, 40.78, -45.48) | |
| CIE LCH | lch(43.14, 61.09, 311.88) | |
| CIE XYZ | xyz(19.661, 13.252, 43.633) | |
| Decimal | 8408754 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #804EB2, 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 #804EB2 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.65:1 | Fail | Fail | Pass |
| Sample text | 5.75:1 | Pass | Fail | Pass |
| #804EB2 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.75:1 | Pass | Fail | Pass |
| Sample text | 3.65: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 #804EB2 looks to people with the most common types of color vision deficiency.
#2965b5Protanopia
no red cones#3b66b0Deuteranopia
no green cones#776178Tritanopia
no blue cones#666666Achromatopsia
no color vision
CSS examples
.background { background-color: #804eb2; }
.text { color: #804eb2; }
.border { border: 2px solid #804eb2; }
.transparent { background-color: rgb(128 78 178 / 50%); }
.gradient { background: linear-gradient(to right, #804eb2, #b24eb2); }
Similar colors
#7851a9Royal Purple#7851a9Royal Lavender#81459ePurple Pleasures#6f58a6Prophet Violet#715bb1Simply Purple#7442c8Purple Rain#654ea3Ultrapurple Merge#7737aaShredder Lavender
Questions
- What color is #804EB2?
- #804EB2 is a desaturated violet, closest to the named color Royal Purple. It belongs to the purple family of colors.
- What is the RGB value of #804EB2?
- The RGB value is 128, 78, 178: 128 red, 78 green and 178 blue on a 0 to 255 scale.
- What is the complementary color of #804EB2?
- The complementary color is #80B24E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #804EB2?
- White text. Black text has a contrast ratio of 3.65:1 and white text 5.75:1. WCAG asks for at least 4.5:1 for normal text.