Olive
Olive is a dark, vivid color from the yellow family. Hex code #808000.
Olive color codes
- CSS name
olive - HEX
#808000 - RGB
rgb(128, 128, 0) - HSL
hsl(60, 100%, 25%) - OKLCH
oklch(58.1% 0.127 109.8)
HSB and CMYK values
- HSB / HSV
hsb(60, 100%, 50%) - CMYK
C0 M0 Y100 K50
White text
4.19:1 · passes WCAG AA for large text only
Black text
5.00:1 · passes WCAG AA
Shades of olive
A darker shade of olive is #535302 (600), and a lighter one is #A2A339 (300).
Colors that go with olive
Complementary
Analogous
Triadic
The complementary color of olive is #000080, which is navy.
Click a color to copy its hex code.
Colors similar to olive
- Olive drab#6B8E23
Slightly lighter, more green
- Sea green#2E8B57
More green
- Dark goldenrod#B8860B
Lighter, more orange
- Forest green#228B22
Slightly darker, more green, more vivid
- Dark olive green#556B2F
Darker, more green, more muted
- Green#008000
Darker, more green, more vivid
Each compared with olive.
About this color
Olive in CSS and design
Olive is one of the 16 basic color keywords, which come from the VGA palette by way of HTML. These four lines all give the same olive:
color: olive;
color: #808000;
color: rgb(128, 128, 0);
color: hsl(60, 100%, 25%);What to know about olive
Merriam-Webster describes olive as the yellowish greens of the unripe fruit of the olive tree. CSS olive is #808000, red and green at half strength, which makes it a darkened yellow. Olive drab (#6B8E23) is its greener neighbor, and dark olive green (#556B2F) is darker and more muted.
Frequently asked questions
What is the hex code for olive?
#808000. In CSS you can also use the keyword olive, which works in every browser.
What is olive in RGB and HSL?
In RGB it is rgb(128, 128, 0) and in HSL hsl(60, 100%, 25%). In CMYK it is about C0 M0 Y100 K50, though printed colors vary with paper and ink.
Should I use black or white text on olive?
Black text works better: it has a contrast ratio of 5.00:1 and passes WCAG AA. White text reaches 4.19:1.
What is the complementary color of olive?
#000080, which is navy. It sits opposite olive on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with olive?
For strong contrast, pair it with its complementary color #000080. For a calmer look, combine it with its analogous neighbors #804000 and #408000. The palette generator builds more combinations.