Olive — #808000
#808000 is a dark, vivid yellow. It is the CSS named color olive.
Color values
| HEX | #808000 |
| RGB | rgb(128, 128, 0) |
| HSL | hsl(60, 100%, 25%) |
| CMYK | cmyk(0%, 0%, 100%, 50%) |
| Decimal | 8421376 |
| CSS | color: #808000; |
| Android | 0xFF808000 |
| Swift | UIColor(red: 0.502, green: 0.502, blue: 0.000, alpha: 1) |
Accessibility and contrast
| White text on #808000 | 4.20:1 — AA fail · AA large pass · AAA fail |
| Black text on #808000 | 5.01:1 — AA pass · AA large pass · AAA fail |
| Recommended text color | black |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #808000
Each swatch keeps the hue and saturation of #808000 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #808000
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #808000 in code
/* CSS */
.element { color: #808000; background-color: #808000; }
.element { color: rgb(128 128 0); }
.element { color: hsl(60 100% 25%); }
/* Tailwind arbitrary value */
<div class="bg-[#808000] text-black">
/* SCSS variable */
$brand: #808000;
Frequently asked questions
What color is #808000?
#808000 is a dark, vivid yellow, which CSS calls olive. Its hue sits at 60° on the color wheel, with 100% saturation and 25% lightness.
What is #808000 in RGB?
#808000 converts to rgb(128, 128, 0) — 128 red, 128 green and 0 blue.
What is #808000 in CMYK?
Approximately cmyk(0%, 0%, 100%, 50%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #808000 be white or black?
Black gives the better contrast ratio (5.01:1 versus 4.20:1).
What is the complementary color of #808000?
#000080 — the hue directly opposite #808000 on the color wheel.