Color Converter (HEX, RGB, HSL)→Specialized Version
🎨

Olive HEX Code

Olive color HEX code

HEX in
#808000
RGB out
rgb(128, 128, 0)
RGB
HSL

All formats

Lightness variations

Olive HEX Code

The HEX code for olive is #808000. Olive is a dark yellow-green color resembling unripe or green olives. It's created by combining equal parts red and green with no blue, then darkening the result.

Olive Color Values

FormatValue
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25%)
CMYKC:0 M:0 Y:100 K:50

Olive Shades and Variations

ShadeHEXDescription
Light Olive#BAB86CLighter
Yellow Green#9ACD32Brighter
Olive#808000CSS olive
Olive Drab#6B8E23Military
Dark Olive Green#556B2FDeep
Army Green#4B5320Very dark

Olive in Design

Olive conveys:

  • Nature: Earthy, organic
  • Military: Camouflage, tactical
  • Sophistication: Muted elegance
  • Vintage: Retro, classic

Using Olive in Design

``css /* Olive palette */ :root { --olive-light: #9ACD32; --olive: #808000; --olive-dark: #556B2F; }

/* Military/tactical style */ .tactical { background-color: #6B8E23; color: #F5F5DC; } `

Olive Color Palettes

ThemePrimarySecondaryAccent
Military#6B8E23#808000#D2B48C
Nature#808000#556B2F#8B4513
Vintage#6B8E23#F5F5DC#8B0000
Olive is popular in military, outdoor, and nature-themed designs, as well as vintage and rustic aesthetics.

Olive in Every Format

FormatValue
HEX#808000
RGBrgb(128, 128, 0)
HSLhsl(60, 100%, 25%)
CMYKcmyk(0%, 0%, 100%, 50%)
Nearest Tailwindyellow-700 (#A16207)

About This Colour

Olive is #808000, half-intensity red and green. It is dark yellow, and another of the original 16 VGA colours.

Will It Pass Contrast?

CombinationRatioWCAG
Olive text on white4.20:1AA large text only
Olive text on black5.01:1AA
White text on olive4.20:1AA large text only
WCAG AA needs 4.5:1 for body text and 3:1 for text above 18pt or 14pt bold. Olive passes on black, so reserve it for dark backgrounds.

Building a Palette Around It

RoleColour
Lighter (+20%)#e5e600
Base#808000
Darker (−20%)#191a00
Complementary#000080
Triadic#007f80, #80007f
Tints (toward white): #a0a040, #c0c080, #dfdfbf

Shades (toward black): #606000, #404000, #202000

Using It

`css :root { --olive: #808000; --olive-light: #e5e600; --olive-dark: #191a00; }

.badge { background: var(--olive); color: #fff; } `

Define the colour once as a custom property rather than repeating the hex. When the brand changes — and it will — you edit one line instead of grepping a stylesheet.

A Full Ramp From This Colour

Design systems settle on a 50–900 scale because it covers backgrounds, borders, text and states without anyone reaching outside the palette. Mixing toward white and black rather than adjusting HSL lightness keeps more of the hue's character:

StepColourContrast on whiteSafe for
50#F5F9FF1.06:1backgrounds and fills
100#EBF3FE1.12:1backgrounds and fills
200#CEE0FD1.34:1backgrounds and fills
300#B1CDFB1.62:1backgrounds and fills
400#76A8F92.40:1backgrounds and fills
500#3B82F63.68:1large text, borders
600#326FD14.85:1body text on white
700#295BAC6.59:1body text on white
800#2048878.98:1body text on white
900#18346212.31:1body text on white
The contrast column is the one that decides usage. Steps below 3:1 cannot carry text at any size and belong in fills and dividers; steps at 4.5:1 and above are safe for body copy.

Adjusting It

Base colour in HSL is hsl(217, 91%, 60%). Two useful moves:

`css /* +10% lightness, same hue */ --lighter: #6da2f8; /* −10% lightness */ --darker: #0b64f4; ``

Raising lightness also drops perceived saturation, so a lightened colour reads greyer than its numbers suggest. Adding 5–10% saturation alongside every 20% of lightness keeps the ramp looking like one hue rather than a fade to grey.

Frequently Asked Questions

What is olive in HEX?

#808000 is CSS olive, a dark yellow-green color.

What is olive drab when working with Olive HEX Code?

Olive drab (#6B8E23) is a grayish-olive used in military uniforms and equipment.

Is olive green or yellow?

Olive is dark yellow-green. It has equal red and green with no blue, making it technically dark yellow.

Related Tools

Explore other tools you might find useful:

More Color Converter (HEX, RGB, HSL) tools

You might also need