Huebook

Olive (CSS)

Olive (CSS) is a medium, saturated yellow color with the hex code #808000 (hue 60°, saturation 100%, lightness 25%). It is also the CSS named color olive.

#808000
NameHEXRGBHSLCMYKOKLCH
Olive (CSS)#808000128, 128, 060°, 100%, 25%0, 0, 100, 5058.1% 0.127 110

Contrast with white text 4.20:1, with black text 5.01:1 — use black text on Olive (CSS).

olive is one of the 148 named colors in CSS, with exactly this value, so color: olive works in any browser without a hex code.

Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work

Adjust Olive (CSS)

Move the sliders to make Olive (CSS) lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.

Olive (CSS)
  • HEX#808000
  • RGBrgb(128 128 0)
  • HSLhsl(60 100% 25%)

Variations of Olive (CSS)

Text on Olive (CSS)

White textThe quick brown fox4.20:1 · AA large text only · AAA fail
Black textThe quick brown fox5.01:1 · AA pass · AAA large text only

WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.

Olive (CSS) with color blindness

Normal #808000
Protanopia #8B7A00
Deuteranopia #8D7D13
Tritanopia #8A776C

How Olive (CSS) appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.

Tints and shades

#FFFFCC
#FFFF80
#FFFF33
#E5E600
#999900
#4C4D00

Colors that go with Olive (CSS)

Six color schemes built on Olive (CSS) with classic harmony rules. The complementary scheme pairs it with Navy Blue (#000080), the color opposite it on the color wheel.

Nearest CSS named colors

Similar dark yellow colors

Questions

What is the hex code for Olive (CSS)?

#808000 — RGB 128, 128, 0, HSL 60°, 100%, 25%.

Is Olive (CSS) a warm or cool color?

Warm — its hue sits at 60° on the color wheel.