Skip to content

Olive drab

Olive drab is a dark, rich color from the green family. Hex code #6B8E23.

Olive drab#6B8E23

Color codes

  • CSS nameolivedrab
  • HEX#6B8E23
  • RGBrgb(107 142 35)
  • HSLhsl(80 60% 35%)
  • HSB / HSVhsb(80, 75%, 56%)
  • OKLCHoklch(59.9% 0.137 126.3)
  • CMYKcmyk(25%, 0%, 75%, 44%)

White text

3.80:1 · passes WCAG AA for large text only

Black text

5.51:1 · passes WCAG AA

Shades

50#E1FFB5
100#BEE57E
200#A2C862
300#87AB45
400#6D9025
500#567413
600#41580F
700#2D3F06
800#192700

Complementary

#6B8E23
#9568C0

Analogous

#6B8E23
#967F00
#1A985D

Triadic

#6B8E23
#2886CD
#C25873

About this color

Olive drab in CSS and design

Olive drab is a dark, rich color from the green family. Olive drab is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: olivedrab;
color: #6B8E23;
color: rgb(107 142 35);
color: hsl(80 60% 35%);

For text on olive drab, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for olive drab?

#6B8E23. In CSS you can also use the keyword olivedrab, which works in every browser.

What is olive drab in RGB and HSL?

In RGB it is rgb(107 142 35), in HSL hsl(80 60% 35%). For print, cmyk(25%, 0%, 75%, 44%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on olive drab?

Black text works better: it has a contrast ratio of 5.51:1 and passes WCAG AA. White text reaches 3.80:1.

Which colors go with olive drab?

Its complementary color is #9568C0, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #967F00 and #1A985D. The palette generator builds more combinations.