Olive Drab Color Code: Hex #6B8E23
The hex code for Olive Drab is #6B8E23 (the CSS keyword olivedrab). Olive Drab RGB code: rgb(107, 142, 35). The xkcd color survey gives #6F7632 instead, which looks clearly different; both codes are below with their source.
#6B8E23Top: the code browsers use#6F7632Below: compare edge to edgeOlive Drab color codes: each Olive Drab hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- green
- Contrast
- 3.81:1 with white, 5.52:1 with black
- CSS keyword
- olivedrab
- Character
- mid-tone, moderately saturated
- Readable text on it
- black (AA)
It shares hue and saturation with yellow green in the X11 set and is the darker of the two, 35% lightness against 50%. Olive drab is recorded as a color name from 1892, while drab itself is a much older name from the middle of the 16th century; shades of it were used on United States Army uniforms in the Second World War.
A mid-tone, moderately saturated yellow-green with a warm cast. In code, olivedrab gives exactly this web value. If you mean the color as people usually picture the name, the survey value #6F7632 is closer: it is darker and more muted.
Black text reads best on it; white text works only for large headings. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Olive, its closest named neighbour, it looks about as light, more vivid and cooler; beside Forest Green it looks lighter, more muted and warmer.
Colors that go with Olive Drab
Complementary: the opposite of Olive Drab
#6B8E23Black text 5.52:1#9568C0Black text 5.02:1#ABC18CBlack text 10.74:1#5A3D76White text 8.88:1
Analogous
#967F00Black text 5.33:1#6B8E23Black text 5.52:1#1A985DBlack text 5.69:1#C1D2ABBlack text 13.07:1
Triadic
#6B8E23Black text 5.52:1#2886CDBlack text 5.38:1#C25873Black text 4.94:1#D8E3CABlack text 15.76:1
Monochrome
#182404White text 16.24:1#3F5611White text 8.23:1#6B8E23Black text 5.52:1#95B06CBlack text 8.70:1#C1D2ABBlack text 13.07:1
With neutrals
#6B8E23Black text 5.52:1#D8E3CABlack text 15.76:1#080E01White text 19.56:1#7A856ABlack text 5.39:1
Preview
Heading on Olive Drab
Body text on this color, 5.52:1.
ButtonHeading in Olive Drab
Text in this color on white, 3.81:1.
ButtonTints and shades
#D8E3CA#C1D2AB#ABC18C#95B06C#809F4B#6B8E23#55711A#3F5611#2B3C09#182404#080E01
WhiteOlive DrabBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Source: Wikipedia, “Olive (color)” (checked 2 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: