#5A2EA6 color
The hex color #5A2EA6 is a moderate violet.
In the RGB color model it is made of 35.3% red, 18% green and 65.1% blue (90, 46, 166).
Its hue angle is 262°, with 57% saturation and 42% lightness. For print, the CMYK equivalent is 46% cyan, 72% magenta, 0% yellow and 35% black.
The closest named color is Royalty (#5930A9), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.84:1).
#5A2EA6 color codes
| HEX | #5A2EA6 | |
|---|---|---|
| RGB | rgb(90, 46, 166) | |
| RGB percent | rgb(35.3%, 18%, 65.1%) | |
| HSL | hsl(262, 57%, 42%) | |
| HSV / HSB | hsv(262, 72%, 65%) | |
| CMYK | cmyk(46%, 72%, 0%, 35%) | |
| CIE LAB | lab(31.53, 46.47, -57.31) | |
| CIE LCH | lch(31.53, 73.78, 309.03) | |
| CIE XYZ | xyz(12.075, 6.88, 36.761) | |
| Decimal | 5910182 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A2EA6, 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 #5A2EA6 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.38:1 | Fail | Fail | Fail |
| Sample text | 8.84:1 | Pass | Pass | Pass |
| #5A2EA6 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.84:1 | Pass | Pass | Pass |
| Sample text | 2.38: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 #5A2EA6 looks to people with the most common types of color vision deficiency.
#004baaProtanopia
no red cones#0048a4Deuteranopia
no green cones#444d67Tritanopia
no blue cones#4a4a4aAchromatopsia
no color vision
CSS examples
.background { background-color: #5a2ea6; }
.text { color: #5a2ea6; }
.border { border: 2px solid #5a2ea6; }
.transparent { background-color: rgb(90 46 166 / 50%); }
.gradient { background: linear-gradient(to right, #5a2ea6, #962ea6); }
Similar colors
#5930a9Royalty#63209bWild Violet#6633bbPurple Emperor#663399Rebecca Purple#472e97Galactic Purple#6f2da8Grape#573894Ruthless Empress#69359cPurple Heart
Questions
- What color is #5A2EA6?
- #5A2EA6 is a moderate violet, closest to the named color Royalty. It belongs to the purple family of colors.
- What is the RGB value of #5A2EA6?
- The RGB value is 90, 46, 166: 90 red, 46 green and 166 blue on a 0 to 255 scale.
- What is the complementary color of #5A2EA6?
- The complementary color is #7AA62E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A2EA6?
- White text. Black text has a contrast ratio of 2.38:1 and white text 8.84:1. WCAG asks for at least 4.5:1 for normal text.