#9E8D2F color
The hex color #9E8D2F is a moderate yellow.
In the RGB color model it is made of 62% red, 55.3% green and 18.4% blue (158, 141, 47).
Its hue angle is 51°, with 54% saturation and 40% lightness. For print, the CMYK equivalent is 0% cyan, 11% magenta, 70% yellow and 38% black.
The closest named color is Gecko (#9D913C), a difference of 2.3 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.3:1).
#9E8D2F color codes
| HEX | #9E8D2F | |
|---|---|---|
| RGB | rgb(158, 141, 47) | |
| RGB percent | rgb(62%, 55.3%, 18.4%) | |
| HSL | hsl(51, 54%, 40%) | |
| HSV / HSB | hsv(51, 70%, 62%) | |
| CMYK | cmyk(0%, 11%, 70%, 38%) | |
| CIE LAB | lab(58.53, -4.62, 50.19) | |
| CIE LCH | lch(58.53, 50.4, 95.26) | |
| CIE XYZ | xyz(24.14, 26.525, 6.537) | |
| Decimal | 10390831 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9E8D2F, 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 #9E8D2F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.3:1 | Pass | Fail | Pass |
| Sample text | 3.33:1 | Fail | Fail | Pass |
| #9E8D2F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.33:1 | Fail | Fail | Pass |
| Sample text | 6.3:1 | Pass | 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 #9E8D2F looks to people with the most common types of color vision deficiency.
#9b8922Protanopia
no red cones#9f8f34Deuteranopia
no green cones#aa837aTritanopia
no blue cones#8d8d8dAchromatopsia
no color vision
CSS examples
.background { background-color: #9e8d2f; }
.text { color: #9e8d2f; }
.border { border: 2px solid #9e8d2f; }
.transparent { background-color: rgb(158 141 47 / 50%); }
.gradient { background: linear-gradient(to right, #9e8d2f, #779e2f); }
Similar colors
#9d913cGecko#9a8d3fJalapeño#9b870cCaptain Kirk#aa9922Greedy Gecko#a19250Backroom Ember#ab8d3fLuxor Gold#ab9a1cLucky#a69151Salted Capers
Closest common color name: Olive Green.
Questions
- What color is #9E8D2F?
- #9E8D2F is a moderate yellow, closest to the named color Gecko. It belongs to the yellow family of colors.
- What is the RGB value of #9E8D2F?
- The RGB value is 158, 141, 47: 158 red, 141 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #9E8D2F?
- The complementary color is #2F409E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9E8D2F?
- Black text. Black text has a contrast ratio of 6.3:1 and white text 3.33:1. WCAG asks for at least 4.5:1 for normal text.