#878127 color
The hex color #878127 is a dark, moderate yellow.
In the RGB color model it is made of 52.9% red, 50.6% green and 15.3% blue (135, 129, 39).
Its hue angle is 56°, with 55% saturation and 34% lightness. For print, the CMYK equivalent is 0% cyan, 4% magenta, 71% yellow and 47% black.
The closest named color is Witch Brew (#888738), a difference of 3.1 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 5.2:1).
#878127 color codes
| HEX | #878127 | |
|---|---|---|
| RGB | rgb(135, 129, 39) | |
| RGB percent | rgb(52.9%, 50.6%, 15.3%) | |
| HSL | hsl(56, 55%, 34%) | |
| HSV / HSB | hsv(56, 71%, 53%) | |
| CMYK | cmyk(0%, 4%, 71%, 47%) | |
| CIE LAB | lab(52.95, -8.95, 47.19) | |
| CIE LCH | lch(52.95, 48.04, 100.74) | |
| CIE XYZ | xyz(18.209, 20.999, 5.013) | |
| Decimal | 8880423 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #878127, 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 #878127 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.2:1 | Pass | Fail | Pass |
| Sample text | 4.04:1 | Fail | Fail | Pass |
| #878127 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 4.04:1 | Fail | Fail | Pass |
| Sample text | 5.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 #878127 looks to people with the most common types of color vision deficiency.
#8c7c19Protanopia
no red cones#8f802dDeuteranopia
no green cones#91786fTritanopia
no blue cones#7e7e7eAchromatopsia
no color vision
CSS examples
.background { background-color: #878127; }
.text { color: #878127; }
.border { border: 2px solid #878127; }
.transparent { background-color: rgb(135 129 39 / 50%); }
.gradient { background: linear-gradient(to right, #878127, #5d8727); }
Similar colors
#888738Witch Brew#828039Green Commando#808000Olive Green#808000Olive#8c7f3cPeas Please#888844Overgrown Citadel#9a8d3fJalapeño#86793dBay Leaf
Questions
- What color is #878127?
- #878127 is a dark, moderate yellow, closest to the named color Witch Brew. It belongs to the yellow family of colors.
- What is the RGB value of #878127?
- The RGB value is 135, 129, 39: 135 red, 129 green and 39 blue on a 0 to 255 scale.
- What is the complementary color of #878127?
- The complementary color is #272D87, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #878127?
- Black text. Black text has a contrast ratio of 5.2:1 and white text 4.04:1. WCAG asks for at least 4.5:1 for normal text.