#5A38AA color
The hex color #5A38AA is a moderate violet.
In the RGB color model it is made of 35.3% red, 22% green and 66.7% blue (90, 56, 170).
Its hue angle is 258°, with 50% saturation and 44% lightness. For print, the CMYK equivalent is 47% cyan, 67% magenta, 0% yellow and 33% black.
The closest named color is Royalty (#5930A9), a difference of 1.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.14:1).
#5A38AA color codes
| HEX | #5A38AA | |
|---|---|---|
| RGB | rgb(90, 56, 170) | |
| RGB percent | rgb(35.3%, 22%, 66.7%) | |
| HSL | hsl(258, 50%, 44%) | |
| HSV / HSB | hsv(258, 67%, 67%) | |
| CMYK | cmyk(47%, 67%, 0%, 33%) | |
| CIE LAB | lab(33.78, 42.27, -56.05) | |
| CIE LCH | lch(33.78, 70.2, 307.02) | |
| CIE XYZ | xyz(12.884, 7.904, 38.869) | |
| Decimal | 5912746 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A38AA, 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 #5A38AA | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.58:1 | Fail | Fail | Fail |
| Sample text | 8.14:1 | Pass | Pass | Pass |
| #5A38AA as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.14:1 | Pass | Pass | Pass |
| Sample text | 2.58: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 #5A38AA looks to people with the most common types of color vision deficiency.
#0051aeProtanopia
no red cones#004da8Deuteranopia
no green cones#41546cTritanopia
no blue cones#4f4f4fAchromatopsia
no color vision
CSS examples
.background { background-color: #5a38aa; }
.text { color: #5a38aa; }
.border { border: 2px solid #5a38aa; }
.transparent { background-color: rgb(90 56 170 / 50%); }
.gradient { background: linear-gradient(to right, #5a38aa, #9338aa); }
Similar colors
#5930a9Royalty#6633bbPurple Emperor#573894Ruthless Empress#69359cPurple Heart#663399Rebecca Purple#533cc6Royal Nightcore#6b3fa0Poppy Pompadour#472e97Galactic Purple
Questions
- What color is #5A38AA?
- #5A38AA is a moderate violet, closest to the named color Royalty. It belongs to the purple family of colors.
- What is the RGB value of #5A38AA?
- The RGB value is 90, 56, 170: 90 red, 56 green and 170 blue on a 0 to 255 scale.
- What is the complementary color of #5A38AA?
- The complementary color is #88AA38, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A38AA?
- White text. Black text has a contrast ratio of 2.58:1 and white text 8.14:1. WCAG asks for at least 4.5:1 for normal text.