#5A5C51 color
The hex color #5A5C51 is a gray.
In the RGB color model it is made of 35.3% red, 36.1% green and 31.8% blue (90, 92, 81).
Its hue angle is 71°, with 6% saturation and 34% lightness. For print, the CMYK equivalent is 2% cyan, 0% magenta, 12% yellow and 64% black.
The closest named color is Ebony (#555D50), a difference of 3.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 6.81:1).
#5A5C51 color codes
| HEX | #5A5C51 | |
|---|---|---|
| RGB | rgb(90, 92, 81) | |
| RGB percent | rgb(35.3%, 36.1%, 31.8%) | |
| HSL | hsl(71, 6%, 34%) | |
| HSV / HSB | hsv(71, 12%, 36%) | |
| CMYK | cmyk(2%, 0%, 12%, 64%) | |
| CIE LAB | lab(38.59, -3.03, 6.06) | |
| CIE LCH | lch(38.59, 6.78, 116.52) | |
| CIE XYZ | xyz(9.529, 10.422, 9.293) | |
| Decimal | 5921873 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5A5C51, 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 #5A5C51 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.08:1 | Fail | Fail | Pass |
| Sample text | 6.81:1 | Pass | Fail | Pass |
| #5A5C51 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.81:1 | Pass | Fail | Pass |
| Sample text | 3.08: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 #5A5C51 looks to people with the most common types of color vision deficiency.
#5e5b50Protanopia
no red cones#5e5b51Deuteranopia
no green cones#5b5b59Tritanopia
no blue cones#5b5b5bAchromatopsia
no color vision
CSS examples
.background { background-color: #5a5c51; }
.text { color: #5a5c51; }
.border { border: 2px solid #5a5c51; }
.transparent { background-color: rgb(90 92 81 / 50%); }
.gradient { background: linear-gradient(to right, #5a5c51, #555c51); }
Similar colors
#555d50Ebony#5e6354Black Forest#57534bMasala#555b59Crucible#67614fIvy Topiary#595d45Tree of Life#4e5a4aVerdant Hush#6c685eCatch of the Day
Questions
- What color is #5A5C51?
- #5A5C51 is a gray, closest to the named color Ebony. It belongs to the gray family of colors.
- What is the RGB value of #5A5C51?
- The RGB value is 90, 92, 81: 90 red, 92 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #5A5C51?
- The complementary color is #53515C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5A5C51?
- White text. Black text has a contrast ratio of 3.08:1 and white text 6.81:1. WCAG asks for at least 4.5:1 for normal text.