#505B42 color
The hex color #505B42 is a dark, grayish yellow-green.
In the RGB color model it is made of 31.4% red, 35.7% green and 25.9% blue (80, 91, 66).
Its hue angle is 86°, with 16% saturation and 31% lightness. For print, the CMYK equivalent is 12% cyan, 0% magenta, 27% yellow and 64% black.
The closest named color is Heavy Green (#49583E), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.2:1).
#505B42 color codes
| HEX | #505B42 | |
|---|---|---|
| RGB | rgb(80, 91, 66) | |
| RGB percent | rgb(31.4%, 35.7%, 25.9%) | |
| HSL | hsl(86, 16%, 31%) | |
| HSV / HSB | hsv(86, 27%, 36%) | |
| CMYK | cmyk(12%, 0%, 27%, 64%) | |
| CIE LAB | lab(37.08, -9.37, 13.03) | |
| CIE LCH | lch(37.08, 16.05, 125.72) | |
| CIE XYZ | xyz(8.033, 9.581, 6.579) | |
| Decimal | 5266242 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #505B42, 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 #505B42 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.92:1 | Fail | Fail | Fail |
| Sample text | 7.2:1 | Pass | Pass | Pass |
| #505B42 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.2:1 | Pass | Pass | Pass |
| Sample text | 2.92: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 #505B42 looks to people with the most common types of color vision deficiency.
#5e5840Protanopia
no red cones#5c5743Deuteranopia
no green cones#515954Tritanopia
no blue cones#575757Achromatopsia
no color vision
CSS examples
.background { background-color: #505b42; }
.text { color: #505b42; }
.border { border: 2px solid #505b42; }
.transparent { background-color: rgb(80 91 66 / 50%); }
.gradient { background: linear-gradient(to right, #505b42, #445b42); }
Similar colors
#49583eHeavy Green#4b5d46Muddy Olive#4b5338Broccoli Green#585d40Cypress#595d45Tree of Life#4e5a4aVerdant Hush#445533Zen Garden Olive#424f3bHōjicha
Closest common color name: Ebony.
Questions
- What color is #505B42?
- #505B42 is a dark, grayish yellow-green, closest to the named color Heavy Green. It belongs to the green family of colors.
- What is the RGB value of #505B42?
- The RGB value is 80, 91, 66: 80 red, 91 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #505B42?
- The complementary color is #4D425B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #505B42?
- White text. Black text has a contrast ratio of 2.92:1 and white text 7.2:1. WCAG asks for at least 4.5:1 for normal text.