100% free no uploads no sign-up

olive drab color code

The hex code for olive drab is #6B8E23, which is rgb(107, 142, 35) in RGB and cmyk(25%, 0%, 75%, 44%) in CMYK. It's a dark, rich green. It is a built-in CSS colour, so you can also write it as “olivedrab”.

#6B8E23olive drab
White text: 3.80:1 large text onlyBlack text: 5.51:1 ✓ AANearest name: olive drab

Move the sliders to find a lighter, darker or softer olive drab; the codes update as you go.

Olive Drab colour codes

HEX#6B8E23
RGBrgb(107, 142, 35)
HSLhsl(80, 60%, 35%)
HSV / HSBhsv(80, 75%, 56%)
CMYKcmyk(25%, 0%, 75%, 44%)
Decimal7048739
CSS keywordolivedrab

About olive drab

Olive Drab sits at a hue of 80° on the colour wheel, with 60% saturation and 35% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.

For text, black reads better on olive drab. Olive Drab as text on a white background has a contrast ratio of 3.8:1, which fails the WCAG AA rule for body text (4.5:1) and passes the 3:1 rule for large text. On black it is 5.51:1, which passes AA for body text.

Tints and shades of olive drab

Tints mix olive drab with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#F0F4E9#E1E8D3#D3DDBD#C4D2A7#B5C791#A6BB7B#97B065#89A54F#7A9939
olive drab #6B8E23
#608020#56721C#4B6319#405515#364712#2B390E#202B0B#151C07#0B0E04

Colours that go with olive drab

Complementary — opposite on the colour wheel: maximum contrast

#6B8E23#46238E

Analogous — neighbours 30° either side: calm and natural

#8E7C23#6B8E23#358E23

Triadic — three hues 120° apart: lively but balanced

#6B8E23#236B8E#8E236B

Split complementary — the two neighbours of the complement: contrast with less tension

#6B8E23#23358E#7C238E

Tetradic — four hues 90° apart: rich, use one as the main colour

#6B8E23#238E7C#46238E#8E2335

Olive Drab text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
olive drab on white3.8:1failpassfail
olive drab on black5.51:1passpassfail

Check olive drab against any other colour in the contrast checker.

How olive drab looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #6B8E23protanopia #96840Ddeuteranopia #91822Dtritanopia #708779

Use olive drab in code

.olive-drab {
  color: olivedrab;
  background-color: #6b8e23;
  border-color: rgb(107, 142, 35);
}

Frequently asked questions

What is the hex code for olive drab?

Olive Drab is #6B8E23 (lowercase #6b8e23). It's the official value of the CSS keyword “olivedrab”.

What is olive drab in RGB, HSL and CMYK?

RGB: rgb(107, 142, 35). HSL: hsl(80, 60%, 35%). CMYK: cmyk(25%, 0%, 75%, 44%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with olive drab?

Its complementary colour is #46238E (close to indigo), which gives the strongest contrast. For a calmer look, use the analogous colours #8E7C23 and #358E23, or the triadic pair #236B8E and #8E236B. Tints and shades of olive drab itself always work together.

Is olive drab a warm or cool colour?

Olive Drab has a hue of 80°, which makes it neither clearly warm nor cool.

Should I use black or white text on olive drab?

Black. Black text on olive drab has a contrast ratio of 5.51:1 and white text has 3.8:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use olive drab in CSS?

Write color: olivedrab; or color: #6b8e23; — both give the same colour. Named colours work in every browser.

Colours similar to olive drab