#9C8C28 color
The hex color #9C8C28 is a moderate yellow.
In the RGB color model it is made of 61.2% red, 54.9% green and 15.7% blue (156, 140, 40).
Its hue angle is 52°, with 59% saturation and 38% lightness. For print, the CMYK equivalent is 0% cyan, 10% magenta, 74% yellow and 39% black.
The closest named color is Captain Kirk (#9B870C), a difference of 2.7 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 6.2:1).
#9C8C28 color codes
| HEX | #9C8C28 | |
|---|---|---|
| RGB | rgb(156, 140, 40) | |
| RGB percent | rgb(61.2%, 54.9%, 15.7%) | |
| HSL | hsl(52, 59%, 38%) | |
| HSV / HSB | hsv(52, 74%, 61%) | |
| CMYK | cmyk(0%, 10%, 74%, 39%) | |
| CIE LAB | lab(58.02, -5.34, 52.43) | |
| CIE LCH | lch(58.02, 52.7, 95.82) | |
| CIE XYZ | xyz(23.473, 25.978, 5.785) | |
| Decimal | 10259496 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #9C8C28, 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 #9C8C28 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 6.2:1 | Pass | Fail | Pass |
| Sample text | 3.39:1 | Fail | Fail | Pass |
| #9C8C28 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.39:1 | Fail | Fail | Pass |
| Sample text | 6.2: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 #9C8C28 looks to people with the most common types of color vision deficiency.
#9a8817Protanopia
no red cones#9e8e2fDeuteranopia
no green cones#a88178Tritanopia
no blue cones#8b8b8bAchromatopsia
no color vision
CSS examples
.background { background-color: #9c8c28; }
.text { color: #9c8c28; }
.border { border: 2px solid #9c8c28; }
.transparent { background-color: rgb(156 140 40 / 50%); }
.gradient { background: linear-gradient(to right, #9c8c28, #729c28); }
Similar colors
#9b870cCaptain Kirk#9d913cGecko#9a8d3fJalapeño#aa9922Greedy Gecko#ab9a1cLucky#a19250Backroom Ember#ab8d3fLuxor Gold#999911Papyrus
Closest common color name: Olive Green.
Questions
- What color is #9C8C28?
- #9C8C28 is a moderate yellow, closest to the named color Captain Kirk. It belongs to the yellow family of colors.
- What is the RGB value of #9C8C28?
- The RGB value is 156, 140, 40: 156 red, 140 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #9C8C28?
- The complementary color is #28389C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #9C8C28?
- Black text. Black text has a contrast ratio of 6.2:1 and white text 3.39:1. WCAG asks for at least 4.5:1 for normal text.