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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| olivedrab | #6b8e23 | 107, 142, 35 | 9.8 |
| darkolivegreen | #556b2f | 85, 107, 47 | 14.8 |
| darkgoldenrod | #b8860b | 184, 134, 11 | 16.2 |
| forestgreen | #228b22 | 34, 139, 34 | 18.7 |
| darkkhaki | #bdb76b | 189, 183, 107 | 19.1 |
| green | #008000 | 0, 128, 0 | 19.2 |
| goldenrod | #daa520 | 218, 165, 32 | 21.5 |
| seagreen | #2e8b57 | 46, 139, 87 | 22.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.