Olive — #808000
The hex code for olive is #808000 — rgb(128, 128, 0), hsl(60, 100%, 25%). Use it in CSS as color: #808000;.
Olive is a dark, muted yellow-green — the color of olive fruit and military uniforms. It feels earthy, practical, and understated.
Olive color codes — click to copy
#808000rgb(128, 128, 0)hsl(60, 100%, 25%)hsv(60, 100%, 50%)cmyk(0%, 0%, 100%, 50%)Shades, tints & tones of olive
Click any swatch to copy it.
Olive harmonies
Click a swatch to copy it.
Colors that go with olive
| Color | Hex | |
|---|---|---|
| Beige | #F5F5DC | |
| Black | #000000 | |
| White | #FFFFFF | |
| Brown | #A52A2A |
Where olive is used
Use olive for outdoor, military, and earthy brands. It pairs well with cream, tan, and black, and it is a popular choice for natural, rugged, or vintage looks.
What olive is often associated with: Earthiness, practicality, and understated strength.
Contrast — can you read text on olive?
White text on olive scores 4.20:1
Normal text: AA Fail AAA Fail
Large text (18pt+, or 14pt bold+): AA Pass AAA Fail
Black text scores 5.01:1Normal text: AA Pass AAA Fail
Large text (18pt+, or 14pt bold+): AA Pass AAA Pass
Check any pair in the contrast checker →How olive looks with color blindness
Simulated with the Machado matrices. Click a swatch to copy the simulated color.
Protanopia
Deuteranopia
Tritanopia
This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.
Frequently asked questions
What is the hex code for olive?
The hex code for olive is #808000.
What is the RGB of olive?
The RGB of olive is rgb(128, 128, 0).
What colors go with olive?
Colors that go well with olive include beige (#F5F5DC), black (#000000), white (#FFFFFF). See the pairings table on this page for the full list.
Is olive a good color for a website?
Olive works well as an accent or background — black text on it scores 5.01:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.
What does the color olive mean?
Earthiness, practicality, and understated strength.
Related tools
Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker