#5F7A42 color
The hex color #5F7A42 is a dark, desaturated yellow-green.
In the RGB color model it is made of 37.3% red, 47.8% green and 25.9% blue (95, 122, 66).
Its hue angle is 89°, with 30% saturation and 37% lightness. For print, the CMYK equivalent is 22% cyan, 0% magenta, 46% yellow and 52% black.
The closest named color is Ghoul (#667744), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 4.83:1).
#5F7A42 color codes
| HEX | #5F7A42 | |
|---|---|---|
| RGB | rgb(95, 122, 66) | |
| RGB percent | rgb(37.3%, 47.8%, 25.9%) | |
| HSL | hsl(89, 30%, 37%) | |
| HSV / HSB | hsv(89, 46%, 48%) | |
| CMYK | cmyk(22%, 0%, 46%, 52%) | |
| CIE LAB | lab(47.94, -20.23, 27.46) | |
| CIE LCH | lch(47.94, 34.11, 126.37) | |
| CIE XYZ | xyz(12.662, 16.745, 7.718) | |
| Decimal | 6257218 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #5F7A42, 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 #5F7A42 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.35:1 | Fail | Fail | Pass |
| Sample text | 4.83:1 | Pass | Fail | Pass |
| #5F7A42 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.83:1 | Pass | Fail | Pass |
| Sample text | 4.35: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 #5F7A42 looks to people with the most common types of color vision deficiency.
#7f733eProtanopia
no red cones#7b7145Deuteranopia
no green cones#61766dTritanopia
no blue cones#727272Achromatopsia
no color vision
CSS examples
.background { background-color: #5f7a42; }
.text { color: #5f7a42; }
.border { border: 2px solid #5f7a42; }
.transparent { background-color: rgb(95 122 66 / 50%); }
.gradient { background: linear-gradient(to right, #5f7a42, #437a42); }
Similar colors
#667744Ghoul#688049Beyond the Pines#4f7942Fern Green#4f7942Mana Tree#517933Luscious Lemongrass#648251Kale#657432Muddy Green#5a8643Shepherd’s Green
Questions
- What color is #5F7A42?
- #5F7A42 is a dark, desaturated yellow-green, closest to the named color Ghoul. It belongs to the green family of colors.
- What is the RGB value of #5F7A42?
- The RGB value is 95, 122, 66: 95 red, 122 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #5F7A42?
- The complementary color is #5D427A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #5F7A42?
- White text. Black text has a contrast ratio of 4.35:1 and white text 4.83:1. WCAG asks for at least 4.5:1 for normal text.