#5A5D7F color
The hex color #5A5D7F is a grayish blue.
In the RGB color model it is made of 35.3% red, 36.5% green and 49.8% blue (90, 93, 127).
Its hue angle is 235°, with 17% saturation and 43% lightness. For print, the CMYK equivalent is 29% cyan, 27% magenta, 0% yellow and 50% black.
The closest named color is Majestic Magic (#555570), a difference of 3.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.35:1).
#5A5D7F color codes
| HEX | #5A5D7F | |
|---|---|---|
| RGB | rgb(90, 93, 127) | |
| RGB percent | rgb(35.3%, 36.5%, 49.8%) | |
| HSL | hsl(235, 17%, 43%) | |
| HSV / HSB | hsv(235, 29%, 50%) | |
| CMYK | cmyk(29%, 27%, 0%, 50%) | |
| CIE LAB | lab(40.47, 7.17, -19.42) | |
| CIE LCH | lch(40.47, 20.7, 290.27) | |
| CIE XYZ | xyz(11.961, 11.534, 21.671) | |
| Decimal | 5922175 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A5D7F, 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 #5A5D7F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.31:1 | Fail | Fail | Pass |
| Sample text | 6.35:1 | Pass | Fail | Pass |
| #5A5D7F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.35:1 | Pass | Fail | Pass |
| Sample text | 3.31: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 #5A5D7F looks to people with the most common types of color vision deficiency.
#536180Protanopia
no red cones#525e7eDeuteranopia
no green cones#516369Tritanopia
no blue cones#5f5f5fAchromatopsia
no color vision
CSS examples
.background { background-color: #5a5d7f; }
.text { color: #5a5d7f; }
.border { border: 2px solid #5a5d7f; }
.transparent { background-color: rgb(90 93 127 / 50%); }
.gradient { background: linear-gradient(to right, #5a5d7f, #6a5a7f); }
Similar colors
#555570Majestic Magic#4c567aDeep Indigo#4e5481Dusk#6a6887Heron#4d5b88Wizard#4d516cIntergalactic#50507fTangent Periwinkle#51588ePiccadilly Purple
Closest common color name: Space Gray.
Questions
- What color is #5A5D7F?
- #5A5D7F is a grayish blue, closest to the named color Majestic Magic. It belongs to the blue family of colors.
- What is the RGB value of #5A5D7F?
- The RGB value is 90, 93, 127: 90 red, 93 green and 127 blue on a 0 to 255 scale.
- What is the complementary color of #5A5D7F?
- The complementary color is #7F7C5A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A5D7F?
- White text. Black text has a contrast ratio of 3.31:1 and white text 6.35:1. WCAG asks for at least 4.5:1 for normal text.