About olive green
A dark yellowish green like unripe olives. This is the CSS olive. Its hex code is #808000, which is rgb(128, 128, 0): 128 red, 128 green and 0 blue on a scale of 0 to 255.
Other values you'll see for olive green: #708238 (a deeper olive drab).
Olive green is a warm color.
Olive green tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of olive green. Click any of them to copy its hex code.
Colors that go with olive green
Complementary
The opposite color on the color wheel, for strong contrast.
Analogous
Neighbors on the color wheel, for a calm, matching look.
Triadic
Three colors evenly spaced around the wheel, for a balanced, lively palette.
Split complementary
The two colors either side of the complement: contrast without clashing.
Text on olive green
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on olive green. Test other combinations with the contrast checker.
Using olive green in CSS
.element {
color: #808000;
background-color: rgb(128 128 0);
border-color: hsl(60 100% 25%);
}
Frequently asked questions
What is the hex code for olive green?
Olive green is #808000. In RGB it's rgb(128, 128, 0), and in HSL it's hsl(60, 100%, 25%).
What colors go with olive green?
Its complementary color is #000080, which gives strong contrast. For a softer look, use analogous colors #804000 and #408000. Olive green also pairs well with white.
Is olive green warm or cool?
Olive green is a warm color.
Should I use white or black text on olive green?
Use black text. Its contrast ratio on olive green is 5.00:1, versus 4.19:1 for white.
Similar colors
- Yellow#FFFF00rgb(255, 255, 0)
- Gold#FFD700rgb(255, 215, 0)
- Orange#FFA500rgb(255, 165, 0)
- Mustard yellow#FFDB58rgb(255, 219, 88)
- Chocolate brown#7B3F00rgb(123, 63, 0)
- Brown#964B00rgb(150, 75, 0)
See all popular colors · All HTML color names · Open olive green in the color picker