Olive color #808000
rgb(128, 128, 0) · oklch(58.1% 0.127 109.8)
Olive (#808000) is a medium, vivid, warm olive. It mixes 50% red, 50% green and 0% blue, with a perceived lightness of 58.1% in OKLCH. Black text reads best on it (5.00:1 vs 4.19:1). The closest other CSS color is Olive Drab (#6B8E23). For people with tritanopia it shifts the most, toward #8A776C.
Olive color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of olive
Shades mix olive with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Olive as a UI color scale (50–950)
An 11-step scale for design systems, with olive placed at step 500. Copy it as a Tailwind v4 theme below.
Colors that go with olive
Harmonies are computed on the OKLCH hue wheel, keeping olive’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is olive accessible? Contrast with white and black
4.19:1
AA fail AA large pass AAA fail
5.00:1
AA pass AA large pass AAA fail
- As a background, olive works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
How olive looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#8b7a00 Red-blind. Reds look dark and brownish; red and green are easily confused.
#8d7d13 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#8a776c Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#7c7c7c Total color blindness, very rare. Only lightness differences are visible.
Colors similar to olive
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use olive in CSS and Tailwind
CSS custom properties
:root {
--olive: #808000;
--olive-rgb: 128 128 0;
}
.text-olive { color: var(--olive); }
.bg-olive { background-color: var(--olive); }
Tailwind v4 theme
@theme {
--color-olive-50: #f7f8ec;
--color-olive-100: #eef0c9;
--color-olive-200: #dee09d;
--color-olive-300: #c6c864;
--color-olive-400: #a8a82d;
--color-olive-500: #808000;
--color-olive-600: #747400;
--color-olive-700: #5c5c11;
--color-olive-800: #474818;
--color-olive-900: #373818;
--color-olive-950: #202010;
}
Make a gradient from olive: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.