olive (#808000)

olive is a CSS named color with the hex code #808000, rgb(128, 128, 0). It is a dark, vivid yellow.

olive#808000
Keywordolive
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25%)

Full #808000 details: palettes, shades, color-blind view →

Description

Olive has a hue of 60°, saturation 100% and lightness 25%, which places it in the yellow family. Its strongest channel is red (128).

Using olive in CSS

.title { color: olive; }
.box   { background: olive; border-color: #808000; }
.soft  { background: rgb(128 128 0 / 20%); }   /* olive at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
olivedrab#6b8e23107, 142, 359.8
darkolivegreen#556b2f85, 107, 4714.8
darkgoldenrod#b8860b184, 134, 1116.2
forestgreen#228b2234, 139, 3418.7
darkkhaki#bdb76b189, 183, 10719.1
green#0080000, 128, 019.2
goldenrod#daa520218, 165, 3221.5
seagreen#2e8b5746, 139, 8722.5

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 4.20:1; with black text: 5.01:1. Black body text on olive meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for olive?
#808000.
What colors are similar to olive?
olivedrab (#6b8e23), darkolivegreen (#556b2f), darkgoldenrod (#b8860b).