Home / Colors / Olive green hex code

Olive green hex code

A dark yellowish green like unripe olives.

#808000 Olive Green
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25%)
HSVhsv(60, 100%, 50%)
CMYKcmyk(0%, 0%, 100%, 50%)
Advertisement

About olive green

A dark yellowish green like unripe olives. This is the CSS olive. Its hex code is #808000, which is rgb(128, 128, 0): 128 red, 128 green and 0 blue on a scale of 0 to 255.

Other values you'll see for olive green: #708238 (a deeper olive drab).

Olive green is a warm color.

Olive green tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of olive green. Click any of them to copy its hex code.

Colors that go with olive green

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

Neighbors on the color wheel, for a calm, matching look.

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on olive green

White text

4.19:1 · Large text only (AA)

Black text

5.00:1 · Passes AA for all text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on olive green. Test other combinations with the contrast checker.

Using olive green in CSS

.element {
  color: #808000;
  background-color: rgb(128 128 0);
  border-color: hsl(60 100% 25%);
}
Advertisement

Frequently asked questions

What is the hex code for olive green?

Olive green is #808000. In RGB it's rgb(128, 128, 0), and in HSL it's hsl(60, 100%, 25%).

What colors go with olive green?

Its complementary color is #000080, which gives strong contrast. For a softer look, use analogous colors #804000 and #408000. Olive green also pairs well with white.

Is olive green warm or cool?

Olive green is a warm color.

Should I use white or black text on olive green?

Use black text. Its contrast ratio on olive green is 5.00:1, versus 4.19:1 for white.

Similar colors

See all popular colors · All HTML color names · Open olive green in the color picker

Advertisement