Olive #808000

Olive#808000 · rgb(128, 128, 0)

Olive color codes

CSS nameolive
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25%)
CMYKcmyk(0%, 0%, 100%, 50%)
Decimal8421376

Shades of Olive (darker)

#737300 · #666600 · #5A5A00 · #4D4D00 · #404000 · #333300 · #262600 · #1A1A00 · #0D0D00

Tints of Olive (lighter)

#8D8D1A · #999933 · #A6A64D · #B3B366 · #C0C080 · #CCCC99 · #D9D9B3 · #E6E6CC · #F2F2E6

Color harmonies

Complementary
#000080
Triadic
#008080, #800080
Analogous
#804000, #408000

Accessibility (WCAG contrast)

White text on Olive4.20:1 · AA large text only
Black text on Olive5.01:1 · AA

Use Olive in code

.element {
  color: olive;          /* or #808000 */
  background-color: rgb(128 128 0 / 0.5);
}

Frequently asked questions

What is the hex code for Olive?

Olive is #808000 in HEX, rgb(128, 128, 0) in RGB and hsl(60, 100%, 25%) in HSL.

Can I use "olive" directly in CSS?

Yes. "olive" is one of the 148 standard CSS named colors, so color: olive; works in every browser.

Is Olive readable on white?

The contrast ratio of Olive on white is 4.20:1 (WCAG AA large text only). On black it is 5.01:1 (AA).

What is the complementary color of Olive?

The complementary color (opposite on the color wheel) is #000080.

Similar colors

Convert any color with the Color Converter, generate palettes with the Random Color Generator, or browse all 148 CSS color names.