Xerobit

Olive Hex Code and Color Values

Olive (CSS keyword olive) is #808000: rgb(128, 128, 0), hsl(60, 100%, 25%).

Olive: #808000

  • Hex
    #808000
  • RGB
    rgb(128, 128, 0)
  • HSL
    hsl(60, 100%, 25%)
  • OKLCH
    oklch(58.1% 0.1266 109.8)
  • CMYK
    0%, 0%, 100%, 50%
  • CSS name
    olive

Where the name olive comes from

olive is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #808000; CSS Color 4 says these came from the VGA palette.

olive is yellow (#FFFF00) with every lit channel at 128 instead of 255: #808000. Its relative luminance is 0.2003 against 0.9278 for yellow.

No three-digit short form.

Shades and tints of Olive

  • 10% white #8D8D1A olive; 10% black #737300 olive
  • 20% white #999933 ; 20% black #666600 darkolivegreen
  • 30% white #A6A64D ; 30% black #5A5A00
  • 40% white #B3B366 darkkhaki; 40% black #4D4D00
  • 50% white #C0C080 darkkhaki; 50% black #404000

Contrast of #808000

Against white 4.20:1 (large text only), against black 5.01:1 (passes AA); black text reads better on Olive. In HSV it is hsv(60, 100%, 50%).

Lightness rank 106 of 139; best partner black, 5.01:1.

Closest names to Olive

Olive has OKLCH hue 110 degrees.

NameHexOKLab distanceThan Olive
olivedrab#6B8E230.044lighter
seagreen#2E8B570.095darker
darkgoldenrod#B8860B0.095lighter
forestgreen#228B220.096darker
darkolivegreen#556B2F0.098darker
green#0080000.116darker
gray#8080800.128lighter

Color harmony for Olive

  • Complementary: #000080 navy
  • Analogous: #804000 saddlebrown, #408000 green
  • Triadic: #008080 teal, #800080 purple
  • Split complementary: #004080 , #400080 indigo

Olive with color vision deficiency

  • Protanopia: #8B7A00, like chocolate (#D2691E), forestgreen (#228B22), green (#008000)
  • Deuteranopia: #8D7D13, like crimson (#DC143C)
  • Tritanopia: #8A776C

FAQ

What is the hex code for Olive?

#808000, or the keyword olive.

Which named color is closest to Olive?

olivedrab (#6B8E23), then seagreen and darkgoldenrod.