#40571F color
The hex color #40571F is a dark, desaturated yellow-green.
In the RGB color model it is made of 25.1% red, 34.1% green and 12.2% blue (64, 87, 31).
Its hue angle is 85°, with 47% saturation and 23% lightness. For print, the CMYK equivalent is 26% cyan, 0% magenta, 64% yellow and 66% black.
The closest named color is Army Green (#4B5320), a difference of 4.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.07:1).
#40571F color codes
| HEX | #40571F | |
|---|---|---|
| RGB | rgb(64, 87, 31) | |
| RGB percent | rgb(25.1%, 34.1%, 12.2%) | |
| HSL | hsl(85, 47%, 23%) | |
| HSV / HSB | hsv(85, 64%, 34%) | |
| CMYK | cmyk(26%, 0%, 64%, 66%) | |
| CIE LAB | lab(33.99, -18.98, 29.07) | |
| CIE LCH | lch(33.99, 34.72, 123.14) | |
| CIE XYZ | xyz(5.77, 8.005, 2.537) | |
| Decimal | 4216607 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40571F, 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 #40571F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.6:1 | Fail | Fail | Fail |
| Sample text | 8.07:1 | Pass | Pass | Pass |
| #40571F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.07:1 | Pass | Pass | Pass |
| Sample text | 2.6: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 #40571F looks to people with the most common types of color vision deficiency.
#5b5119Protanopia
no red cones#584f23Deuteranopia
no green cones#42534bTritanopia
no blue cones#505050Achromatopsia
no color vision
CSS examples
.background { background-color: #40571f; }
.text { color: #40571f; }
.border { border: 2px solid #40571f; }
.transparent { background-color: rgb(64 87 31 / 50%); }
.gradient { background: linear-gradient(to right, #40571f, #24571f); }
Similar colors
#4b5320Army Green#335500Deep Forestial Escapade#2f4a15Treetop Cathedral#3c4d03Godzilla#415b36Turf#445533Zen Garden Olive#3e6334Greenhouse#54682bBimi Green
Questions
- What color is #40571F?
- #40571F is a dark, desaturated yellow-green, closest to the named color Army Green. It belongs to the green family of colors.
- What is the RGB value of #40571F?
- The RGB value is 64, 87, 31: 64 red, 87 green and 31 blue on a 0 to 255 scale.
- What is the complementary color of #40571F?
- The complementary color is #361F57, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40571F?
- White text. Black text has a contrast ratio of 2.6:1 and white text 8.07:1. WCAG asks for at least 4.5:1 for normal text.