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.
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.