Skip to content

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

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is olive accessible? Contrast with white and black

Olive text on white

4.19:1

AA fail AA large pass AAA fail

Olive text on black

5.00:1

AA pass AA large pass AAA fail

Check olive against any other color

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.

Protanopia: #8b7a00
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #8d7d13
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #8a776c
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #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).

ΔE 4.4 Olive Drab
#6b8e23
ΔE 9.5 Sea Green
#2e8b57
ΔE 9.5 Dark Goldenrod
#b8860b
ΔE 9.6 Forest Green
#228b22

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.