Olive Color Code: Hex #808000
The hex code for Olive is #808000 (the CSS keyword olive). Olive RGB code: rgb(128, 128, 0). The xkcd color survey gives #6E750E instead, which looks slightly different; both codes are below with their source.
#808000Top: the code browsers use#6E750EBelow: compare edge to edgeOlive color codes: each Olive hex code in every format
Sources
Properties
- Hex codes
- 3 different ones in 3 color lists; they look slightly different
- Family
- green
- Contrast
- 4.20:1 with white, 5.01:1 with black
- CSS keyword
- olive
- Character
- mid-tone, moderately saturated
- Readable text on it
- black (AA)
It is a yellowish green like that of unripe, green olives.
A mid-tone, moderately saturated yellow with a warm cast. In code, olive gives exactly this web value. If you mean the color as people usually picture the name, the survey value #6E750E 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 Drab, its closest named neighbour, it looks about as light, more muted and warmer; beside Bronze it looks darker, about as saturated and cooler. It is one of the 16 original HTML 4 color names.
Colors that go with Olive
Complementary: the opposite of Olive
#808000Black text 5.01:1#7A6CC0Black text 4.73:1#B6B885Black text 10.18:1#494076White text 9.22:1
Analogous
#A07100Black text 4.86:1#808000Black text 5.01:1#4F8C40Black text 5.16:1#CACBA6Black text 12.60:1
Triadic
#808000Black text 5.01:1#0086B1Black text 5.04:1#B05885White text 4.58:1#DDDFC7Black text 15.45:1
Monochrome
#1F1F00White text 16.74:1#4D4D00White text 8.83:1#808000Black text 5.01:1#A4A563Black text 8.14:1#CACBA6Black text 12.60:1
With neutrals
#808000Black text 5.01:1#DDDFC7Black text 15.45:1#0B0B00White text 19.77:1#808167Black text 5.25:1
Preview
Heading on Olive
Body text on this color, 5.01:1.
ButtonHeading in Olive
Text in this color on white, 4.20:1.
ButtonTints and shades
#DDDFC7#CACBA6#B6B885#A4A563#92933E#808000#666600#4D4D00#353500#1F1F00#0B0B00
WhiteOliveBlack
Similar named colors
Where the name comes from
- 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: