#505851 color
The hex color #505851 is a gray.
In the RGB color model it is made of 31.4% red, 34.5% green and 31.8% blue (80, 88, 81).
Its hue angle is 127°, with 5% saturation and 33% lightness. For print, the CMYK equivalent is 9% cyan, 0% magenta, 8% yellow and 65% 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 7.35:1).
#505851 color codes
| HEX | #505851 | |
|---|---|---|
| RGB | rgb(80, 88, 81) | |
| RGB percent | rgb(31.4%, 34.5%, 31.8%) | |
| HSL | hsl(127, 5%, 33%) | |
| HSV / HSB | hsv(127, 9%, 35%) | |
| CMYK | cmyk(9%, 0%, 8%, 65%) | |
| CIE LAB | lab(36.52, -4.69, 2.98) | |
| CIE LCH | lch(36.52, 5.55, 147.53) | |
| CIE XYZ | xyz(8.283, 9.279, 9.138) | |
| Decimal | 5265489 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505851, 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 #505851 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.86:1 | Fail | Fail | Fail |
| Sample text | 7.35:1 | Pass | Pass | Pass |
| #505851 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.35:1 | Pass | Pass | Pass |
| Sample text | 2.86: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 #505851 looks to people with the most common types of color vision deficiency.
#585651Protanopia
no red cones#575651Deuteranopia
no green cones#4f5856Tritanopia
no blue cones#565656Achromatopsia
no color vision
CSS examples
.background { background-color: #505851; }
.text { color: #505851; }
.border { border: 2px solid #505851; }
.transparent { background-color: rgb(80 88 81 / 50%); }
.gradient { background: linear-gradient(to right, #505851, #505855); }
Similar colors
#555d50Ebony#555b59Crucible#495252Dark as Night#444b43Ancient Pine#4e5a4aVerdant Hush#455454All Nighter#424c4aUrban Chic#444b4aMoonless Sky
Questions
- What color is #505851?
- #505851 is a gray, closest to the named color Ebony. It belongs to the gray family of colors.
- What is the RGB value of #505851?
- The RGB value is 80, 88, 81: 80 red, 88 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #505851?
- The complementary color is #585057, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505851?
- White text. Black text has a contrast ratio of 2.86:1 and white text 7.35:1. WCAG asks for at least 4.5:1 for normal text.