#9D8C2E color
The hex color #9D8C2E is a moderate yellow.
In the RGB color model it is made of 61.6% red, 54.9% green and 18% blue (157, 140, 46).
Its hue angle is 51°, with 55% saturation and 40% lightness. For print, the CMYK equivalent is 0% cyan, 11% magenta, 71% yellow and 38% black.
The closest named color is Gecko (#9D913C), a difference of 2.5 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.22:1).
#9D8C2E color codes
| HEX | #9D8C2E | |
|---|---|---|
| RGB | rgb(157, 140, 46) | |
| RGB percent | rgb(61.6%, 54.9%, 18%) | |
| HSL | hsl(51, 55%, 40%) | |
| HSV / HSB | hsv(51, 71%, 62%) | |
| CMYK | cmyk(0%, 11%, 71%, 38%) | |
| CIE LAB | lab(58.15, -4.58, 50.19) | |
| CIE LCH | lch(58.15, 50.4, 95.21) | |
| CIE XYZ | xyz(23.777, 26.123, 6.374) | |
| Decimal | 10325038 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9D8C2E, 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 #9D8C2E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.22:1 | Pass | Fail | Pass |
| Sample text | 3.37:1 | Fail | Fail | Pass |
| #9D8C2E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.37:1 | Fail | Fail | Pass |
| Sample text | 6.22: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 #9D8C2E looks to people with the most common types of color vision deficiency.
#9a8820Protanopia
no red cones#9e8e34Deuteranopia
no green cones#a98279Tritanopia
no blue cones#8c8c8cAchromatopsia
no color vision
CSS examples
.background { background-color: #9d8c2e; }
.text { color: #9d8c2e; }
.border { border: 2px solid #9d8c2e; }
.transparent { background-color: rgb(157 140 46 / 50%); }
.gradient { background: linear-gradient(to right, #9d8c2e, #769d2e); }
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 #9D8C2E?
- #9D8C2E is a moderate yellow, closest to the named color Gecko. It belongs to the yellow family of colors.
- What is the RGB value of #9D8C2E?
- The RGB value is 157, 140, 46: 157 red, 140 green and 46 blue on a 0 to 255 scale.
- What is the complementary color of #9D8C2E?
- The complementary color is #2E3F9D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9D8C2E?
- Black text. Black text has a contrast ratio of 6.22:1 and white text 3.37:1. WCAG asks for at least 4.5:1 for normal text.