Skip to content
Hex Color Picker

Olive Color

Olive is a dark, muted yellow-green. Its hex code is #808000, which is rgb(128, 128, 0) in RGB, hsl(60, 100%, 25%) in HSL and cmyk(0%, 0%, 100%, 50%) in CMYK. It is a standard named color in CSS, so you can write it as olive in a stylesheet.

#808000exactly olive

This is the CSS color olive #808000

Use 3 or 6 digits, for example #1E90FF or 19F

For example rgb(30, 144, 255) or 30 144 255

For example hsl(210, 100%, 56%)

For example cmyk(88%, 44%, 0%, 0%)

Recent colors

Colors you pick appear here. They stay on this device.

By the Hex Color Picker Team. Updated

Olive color codes

  • Hex: #808000
  • RGB: rgb(128, 128, 0)
  • HSL: hsl(60, 100%, 25%)
  • CMYK: cmyk(0%, 0%, 100%, 50%) (standard formula, not a print profile)
  • CSS name: olive

About the color olive

Olive has equal red and green at half strength and no blue, which puts its hue at 60 degrees. It looks earthy, natural and a little military.

Where olive works

  • Natural, outdoor and utility brands.
  • Muted backgrounds and headings with light type or dark type.
  • Illustration palettes with an earthy feel.

Colors that go with olive

These named colors pair well with olive. Click one to see its page where it exists.

The complementary color of olive, directly opposite it on the color wheel, is #000080, closest to navy. The analogous neighbors are #804000 and #408000, and the triadic partners are #008080 and #800080. The color palette generator builds a full scheme from any of them.

Named colors nearest to olive are olivedrab, seagreen, and darkgoldenrod.

Shades and tints of olive

Keeping the hue and saturation of olive and stepping the lightness from light to dark gives this scale. Use the lighter values for backgrounds and the darker ones for text and borders.

  • #FFFFE5
  • #FFFFAC
  • #FFFF73
  • #FFFF39
  • #FFFF00
  • #C6C600
  • #8C8C00
  • #535300
  • #191900

Contrast and accessibility

White text on olive has a contrast ratio of 4.2:1, and black text has 5.0:1. The WCAG AA guideline asks for at least 4.5:1 for body text and 3:1 for large text. Black text passes on olive, and white text does not.

Olive sits near the contrast threshold for both white and black text. Black text clears the guideline, white text does not.

Common questions

What is the hex code for olive?

The hex code for olive is #808000. In RGB it is rgb(128, 128, 0) and in HSL it is hsl(60, 100%, 25%).

How is olive different from olivedrab?

Olivedrab is greener and brighter. Olive is more yellow and more muted.

Is white text readable on olive?

Not for body text. White on olive has a contrast ratio of 4.2:1, below the 4.5:1 WCAG AA guideline. Black text has a ratio of 5.0:1, which passes.

More named colors

More color tools