Toolman

olivedrab — #6B8E23

#6B8E23

rgb(107, 142, 35) · hsl(80, 60%, 35%) · CSS keyword olivedrab

Can you put text on it?

ContrastBody textLarge text
olivedrab on white3.81:1AA
olivedrab on black5.52:1AAAA

As a background, olivedrab takes black text: 5.52:1 against 3.81: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.

Using it

color: olivedrab;
color: #6b8e23;
color: rgb(107 142 35);

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 olivedrab

Frequently asked questions

What is the hex code for olivedrab?

The hex code for olivedrab is #6B8E23 — RGB 107, 142, 35.

Can I use olivedrab for text?

Only for large text. olivedrab reaches 3.81: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 olivedrab be black or white?

Black — 5.52:1 against 3.81:1 the other way.

Other named colours

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