Skip to content
Color Codes

CSS named color

OliveDrab Color Code

OliveDrab is a dark, moderately saturated green with the hex code #6B8E23. In RGB it is rgb(107, 142, 35), in HSL hsl(80, 60%, 35%) and in CMYK cmyk(25%, 0%, 75%, 44%).

OliveDrab
#6B8E23

Color values

In CSS you can write it as the keyword olivedrab.

White text on OliveDrab has a contrast ratio of 3.81:1 and black text 5.52:1, so black text is the more readable choice.

The closest Tailwind CSS color is Lime 600 (#65A30D).

Use OliveDrab in CSS

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

Tints and shades of OliveDrab

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with OliveDrab

Color-wheel harmonies built from #6B8E23. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on OliveDrab

Aa
White text
3.81:1
AA · Large text
Aa
Black text
5.52:1
AA
Check in the contrast checker

Colors similar to OliveDrab

Palettes with similar colors

Questions about OliveDrab

What is the hex code for OliveDrab?

The hex code for OliveDrab is #6B8E23. Its RGB value is rgb(107, 142, 35) and its HSL value is hsl(80, 60%, 35%).

What colors go with OliveDrab?

The complementary color of OliveDrab is #47248F. For a softer scheme try the analogous colors #8F7D24 and #368F24; for a balanced three-color scheme use the triadic colors #246B8F and #8F246B.

Is OliveDrab readable as a text color?

On a white background OliveDrab has a contrast ratio of 3.81:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 5.52:1.

More green colors