Olive drab
Olive drab is a dark, rich color from the green family. Hex code #6B8E23.
Color codes
- CSS name
olivedrab - HEX
#6B8E23 - RGB
rgb(107 142 35) - HSL
hsl(80 60% 35%) - HSB / HSV
hsb(80, 75%, 56%) - OKLCH
oklch(59.9% 0.137 126.3) - CMYK
cmyk(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
Complementary
Analogous
Triadic
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.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
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.