Olive drab
Olive drab is a dark, rich color from the green family. Hex code #6B8E23.
Olive drab color codes
- CSS name
olivedrab - HEX
#6B8E23 - RGB
rgb(107, 142, 35) - HSL
hsl(80, 60%, 35%) - OKLCH
oklch(59.9% 0.137 126.3)
HSB and CMYK values
- HSB / HSV
hsb(80, 75%, 56%) - CMYK
C25 M0 Y75 K44
White text
3.80:1 · passes WCAG AA for large text only
Black text
5.51:1 · passes WCAG AA
Shades of olive drab
A darker shade of olive drab is #41580F (600), and a lighter one is #A2C862 (200).
Colors that go with olive drab
Complementary
Analogous
Triadic
The complementary color of olive drab is #46238E, close to indigo.
Click a color to copy its hex code.
Colors similar to olive drab
- Olive#808000
Slightly darker, more yellow
- Forest green#228B22
Slightly darker, more cyan, more vivid
- Sea green#2E8B57
Slightly darker, more cyan
- Green#008000
Darker, more cyan, more vivid
- Medium sea green#3CB371
Lighter, more cyan
- Dark olive green#556B2F
Darker, more muted
Each compared with olive drab.
About this color
Olive drab in CSS and design
Olive drab is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same olive drab:
color: olivedrab;
color: #6B8E23;
color: rgb(107, 142, 35);
color: hsl(80, 60%, 35%);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) and in HSL hsl(80, 60%, 35%). In CMYK it is about C25 M0 Y75 K44, though printed colors vary with paper and ink.
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.
What is the complementary color of olive drab?
#46238E, close to indigo. It sits opposite olive drab on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with olive drab?
For strong contrast, pair it with its complementary color #46238E. For a calmer look, combine it with its analogous neighbors #8E7B23 and #358E23. The palette generator builds more combinations.