Olive Drab #6B8E23

Olive Drab color (#6B8E23)

Olive Drab is one of the 148 CSS named colors. Use the keyword olivedrab anywhere CSS accepts a color, or its hex code #6B8E23, which is rgb(107, 142, 35) in RGB.

It is a medium, vivid cool color with a hue angle of 80° on the HSL color wheel and a perceived lightness of 60% in OKLCH. On a olive drab background, black text gives the higher contrast at 5.51:1, which passes WCAG AA for normal text.

Olive Drab color codes

CSS name olivedrab
HEX #6B8E23
HEX (8-digit) #6B8E23FF
RGB rgb(107, 142, 35)
HSL hsl(80, 61%, 35%)
HSV / HSB hsv(80, 75%, 56%)
OKLCH oklch(59.9% 0.1374 126.3)
CMYK cmyk(24.6%, 0%, 75.4%, 44.3%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for olive drab used as text and as a background.

Aa Sample text
Olive Drab text on white
3.80:1 WCAG Lc 65.4 APCA AA large text only
Aa Sample text
Olive Drab text on black
5.51:1 WCAG Lc -36.2 APCA Passes AA
Aa Sample text
White text on olive drab
3.80:1 WCAG Lc -70.9 APCA AA large text only
Aa Sample text
Black text on olive drab
5.51:1 WCAG Lc 38.7 APCA Passes AA

Tints and shades of olive drab

Tints mix olive drab with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with olive drab

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

Olive Drab with color blindness

Approximately how olive drab appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using olive drab in CSS

.element {
  color: olivedrab;
  background-color: #6b8e23;
  border-color: rgb(107 142 35 / 50%);
  outline-color: oklch(59.9% 0.1374 126.3);
}

Similar named colors

See all shades of green or browse every CSS color name.

Related tools