Skip to content

Olive

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

Olive#808000

Color codes

  • CSS nameolive
  • HEX#808000
  • RGBrgb(128 128 0)
  • HSLhsl(60 100% 25%)
  • HSB / HSVhsb(60, 100%, 50%)
  • OKLCHoklch(58.1% 0.127 109.8)
  • CMYKcmyk(0%, 0%, 100%, 50%)

White text

4.19:1 · passes WCAG AA for large text only

Black text

5.00:1 · passes WCAG AA

Shades

50#F7FA92
100#DADC75
200#BDBF58
300#A2A339
400#878713
500#6C6C18
600#535302
700#3A3A00
800#242400

Complementary

#808000
#7A6CC0

Analogous

#808000
#9E7215
#4F8C40

Triadic

#808000
#0786B0
#B05885

About this color

Olive in CSS and design

Olive is a dark, vivid color from the yellow family. Olive is one of the 16 basic color keywords, which go back to HTML 4, long before CSS had 148 named colors.

Use it in CSS by name or by any of its codes; these all give the same color:

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

For text on olive, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

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), in HSL hsl(60 100% 25%). For print, cmyk(0%, 0%, 100%, 50%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with olive?

Its complementary color is #7A6CC0, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #9E7215 and #4F8C40. The palette generator builds more combinations.