Skip to content

Olive

Olive is a dark, vivid color from the yellow family. Hex code #808000.

Olive#808000

Olive color codes

  • CSS nameolive
  • HEX#808000
  • RGBrgb(128, 128, 0)
  • HSLhsl(60, 100%, 25%)
  • OKLCHoklch(58.1% 0.127 109.8)
HSB and CMYK values
  • HSB / HSVhsb(60, 100%, 50%)
  • CMYKC0 M0 Y100 K50

White text

4.19:1 · passes WCAG AA for large text only

Black text

5.00:1 · passes WCAG AA

Shades of olive

A darker shade of olive is #535302 (600), and a lighter one is #A2A339 (300).

Colors that go with olive

Complementary

Analogous

Triadic

The complementary color of olive is #000080, which is navy.

Click a color to copy its hex code.

Colors similar to olive

Each compared with olive.

About this color

Olive in CSS and design

Olive is one of the 16 basic color keywords, which come from the VGA palette by way of HTML. These four lines all give the same olive:

color: olive;
color: #808000;
color: rgb(128, 128, 0);
color: hsl(60, 100%, 25%);

What to know about olive

Merriam-Webster describes olive as the yellowish greens of the unripe fruit of the olive tree. CSS olive is #808000, red and green at half strength, which makes it a darkened yellow. Olive drab (#6B8E23) is its greener neighbor, and dark olive green (#556B2F) is darker and more muted.

Frequently asked questions

What is the hex code for olive?

#808000. In CSS you can also use the keyword olive, which works in every browser.

What is olive in RGB and HSL?

In RGB it is rgb(128, 128, 0) and in HSL hsl(60, 100%, 25%). In CMYK it is about C0 M0 Y100 K50, though printed colors vary with paper and ink.

Should I use black or white text on olive?

Black text works better: it has a contrast ratio of 5.00:1 and passes WCAG AA. White text reaches 4.19:1.

What is the complementary color of olive?

#000080, which is navy. It sits opposite olive on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with olive?

For strong contrast, pair it with its complementary color #000080. For a calmer look, combine it with its analogous neighbors #804000 and #408000. The palette generator builds more combinations.