#505842 color
The hex color #505842 is a dark, grayish yellow-green.
In the RGB color model it is made of 31.4% red, 34.5% green and 25.9% blue (80, 88, 66).
Its hue angle is 82°, with 14% saturation and 30% lightness. For print, the CMYK equivalent is 9% cyan, 0% magenta, 25% yellow and 65% black.
The closest named color is Broccoli Green (#4B5338), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.46:1).
#505842 color codes
| HEX | #505842 | |
|---|---|---|
| RGB | rgb(80, 88, 66) | |
| RGB percent | rgb(31.4%, 34.5%, 25.9%) | |
| HSL | hsl(82, 14%, 30%) | |
| HSV / HSB | hsv(82, 25%, 35%) | |
| CMYK | cmyk(9%, 0%, 25%, 65%) | |
| CIE LAB | lab(36.13, -7.61, 11.74) | |
| CIE LCH | lch(36.13, 13.99, 122.96) | |
| CIE XYZ | xyz(7.781, 9.078, 6.496) | |
| Decimal | 5265474 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505842, 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 #505842 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.82:1 | Fail | Fail | Fail |
| Sample text | 7.46:1 | Pass | Pass | Pass |
| #505842 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.46:1 | Pass | Pass | Pass |
| Sample text | 2.82: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 #505842 looks to people with the most common types of color vision deficiency.
#5b5541Protanopia
no red cones#595543Deuteranopia
no green cones#525652Tritanopia
no blue cones#555555Achromatopsia
no color vision
CSS examples
.background { background-color: #505842; }
.text { color: #505842; }
.border { border: 2px solid #505842; }
.transparent { background-color: rgb(80 88 66 / 50%); }
.gradient { background: linear-gradient(to right, #505842, #455842); }
Similar colors
#4b5338Broccoli Green#595d45Tree of Life#4e5a4aVerdant Hush#49583eHeavy Green#585d40Cypress#4d503cKelp#4b5d46Muddy Olive#424f3bHōjicha
Closest common color name: Ebony.
Questions
- What color is #505842?
- #505842 is a dark, grayish yellow-green, closest to the named color Broccoli Green. It belongs to the green family of colors.
- What is the RGB value of #505842?
- The RGB value is 80, 88, 66: 80 red, 88 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #505842?
- The complementary color is #4A4258, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505842?
- White text. Black text has a contrast ratio of 2.82:1 and white text 7.46:1. WCAG asks for at least 4.5:1 for normal text.