#9D8D2D color
The hex color #9D8D2D is a moderate yellow.
In the RGB color model it is made of 61.6% red, 55.3% green and 17.6% blue (157, 141, 45).
Its hue angle is 51°, with 55% saturation and 40% lightness. For print, the CMYK equivalent is 0% cyan, 10% magenta, 71% 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.28:1).
#9D8D2D color codes
| HEX | #9D8D2D | |
|---|---|---|
| RGB | rgb(157, 141, 45) | |
| RGB percent | rgb(61.6%, 55.3%, 17.6%) | |
| HSL | hsl(51, 55%, 40%) | |
| HSV / HSB | hsv(51, 71%, 62%) | |
| CMYK | cmyk(0%, 10%, 71%, 38%) | |
| CIE LAB | lab(58.42, -5.18, 50.88) | |
| CIE LCH | lch(58.42, 51.14, 95.81) | |
| CIE XYZ | xyz(23.904, 26.408, 6.32) | |
| Decimal | 10325293 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9D8D2D, 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 #9D8D2D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.28:1 | Pass | Fail | Pass |
| Sample text | 3.34:1 | Fail | Fail | Pass |
| #9D8D2D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.34:1 | Fail | Fail | Pass |
| Sample text | 6.28: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 #9D8D2D looks to people with the most common types of color vision deficiency.
#9b891fProtanopia
no red cones#9f8f33Deuteranopia
no green cones#a9837aTritanopia
no blue cones#8c8c8cAchromatopsia
no color vision
CSS examples
.background { background-color: #9d8d2d; }
.text { color: #9d8d2d; }
.border { border: 2px solid #9d8d2d; }
.transparent { background-color: rgb(157 141 45 / 50%); }
.gradient { background: linear-gradient(to right, #9d8d2d, #759d2d); }
Similar colors
#9d913cGecko#9a8d3fJalapeño#9b870cCaptain Kirk#aa9922Greedy Gecko#a19250Backroom Ember#ab9a1cLucky#ab8d3fLuxor Gold#a69a51Formosan Green
Closest common color name: Olive Green.
Questions
- What color is #9D8D2D?
- #9D8D2D is a moderate yellow, closest to the named color Gecko. It belongs to the yellow family of colors.
- What is the RGB value of #9D8D2D?
- The RGB value is 157, 141, 45: 157 red, 141 green and 45 blue on a 0 to 255 scale.
- What is the complementary color of #9D8D2D?
- The complementary color is #2D3D9D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9D8D2D?
- Black text. Black text has a contrast ratio of 6.28:1 and white text 3.34:1. WCAG asks for at least 4.5:1 for normal text.