#5A5297 color
The hex color #5A5297 is a desaturated blue.
In the RGB color model it is made of 35.3% red, 32.2% green and 59.2% blue (90, 82, 151).
Its hue angle is 247°, with 30% saturation and 46% lightness. For print, the CMYK equivalent is 40% cyan, 46% magenta, 0% yellow and 41% black.
The closest named color is Twilight (#4E518B), a difference of 3.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.8:1).
#5A5297 color codes
| HEX | #5A5297 | |
|---|---|---|
| RGB | rgb(90, 82, 151) | |
| RGB percent | rgb(35.3%, 32.2%, 59.2%) | |
| HSL | hsl(247, 30%, 46%) | |
| HSV / HSB | hsv(247, 46%, 59%) | |
| CMYK | cmyk(40%, 46%, 0%, 41%) | |
| CIE LAB | lab(38.62, 20.96, -36.84) | |
| CIE LCH | lch(38.62, 42.38, 299.63) | |
| CIE XYZ | xyz(12.818, 10.442, 30.612) | |
| Decimal | 5919383 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A5297, 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 #5A5297 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.09:1 | Fail | Fail | Pass |
| Sample text | 6.8:1 | Pass | Fail | Pass |
| #5A5297 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.8:1 | Pass | Fail | Pass |
| Sample text | 3.09: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 #5A5297 looks to people with the most common types of color vision deficiency.
#395d9aProtanopia
no red cones#385995Deuteranopia
no green cones#49606dTritanopia
no blue cones#5b5b5bAchromatopsia
no color vision
CSS examples
.background { background-color: #5a5297; }
.text { color: #5a5297; }
.border { border: 2px solid #5a5297; }
.transparent { background-color: rgb(90 82 151 / 50%); }
.gradient { background: linear-gradient(to right, #5a5297, #7c5297); }
Similar colors
#4e518bTwilight#654ea3Ultrapurple Merge#51588ePiccadilly Purple#5c5083Freshly Purpleized#6f58a6Prophet Violet#5d6098Wizard’s Potion#50507fTangent Periwinkle#6f5698Passion Flower
Closest common color name: Dark Slate Blue.
Questions
- What color is #5A5297?
- #5A5297 is a desaturated blue, closest to the named color Twilight. It belongs to the blue family of colors.
- What is the RGB value of #5A5297?
- The RGB value is 90, 82, 151: 90 red, 82 green and 151 blue on a 0 to 255 scale.
- What is the complementary color of #5A5297?
- The complementary color is #8F9752, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A5297?
- White text. Black text has a contrast ratio of 3.09:1 and white text 6.8:1. WCAG asks for at least 4.5:1 for normal text.