Toolman

olive — #808000

#808000

rgb(128, 128, 0) · hsl(60, 100%, 25%) · CSS keyword olive

Can you put text on it?

ContrastBody textLarge text
olive on white4.2:1AA
olive on black5.01:1AAAA

As a background, olive takes black text: 5.01:1 against 4.2:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Where the name comes from

The colour of the unripe fruit. In CSS it is a dark yellow rather than the green most people picture.

Using it

color: olive;
color: #808000;
color: rgb(128 128 0);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to olive

Frequently asked questions

What is the hex code for olive?

The hex code for olive is #808000 — RGB 128, 128, 0.

Can I use olive for text?

Only for large text. olive reaches 4.2:1 against white — enough for the 3:1 of headings at 24px or 18.5px bold, short of the 4.5:1 body text needs.

Should text on olive be black or white?

Black — 5.01:1 against 4.2:1 the other way.

Other named colours

#808000 in full — tints, shades and harmonies · All named colours · Colour reference