Olive Color
HEX #808000 · rgb(128, 128, 0) · hsl(60, 100%, 25%)
Olive color codes
Olive is one of the named colors every browser understands. In CSS you can write it as olive or #808000.
| Format | Value | |
|---|---|---|
| HEX | #808000 | |
| RGB | rgb(128, 128, 0) | |
| HSL | hsl(60, 100%, 25%) | |
| CMYK | 0%, 0%, 100%, 50% | |
| CSS name | olive |
.example {
color: olive;
background-color: #808000;
border-color: rgb(128, 128, 0);
}
Colors that go with olive
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of olive
Tints mix the color with white; shades mix it with black.
Olive
Contrast and readability
5.01:1
passes AA
4.20:1
large text only
Use black text on olive. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for olive?
The hex code for olive is #808000.
What is the RGB value of olive?
Olive is rgb(128, 128, 0): 128 red, 128 green and 0 blue on a 0 to 255 scale.
What color goes with olive?
Its complementary color is #000080, which is closest to the named color navy. Analogous and triadic matches are listed on this page.
Should text on olive be black or white?
Use black text. The contrast ratio is 5.01:1 with black and 4.20:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.