Skip to content
PantoneTools
yellow
CSS Named Colors

Olive

olive · #808000

HEX

#808000

RGB

rgb(128, 128, 0)

CMYK

cmyk(0%, 0%, 100%, 50%)

HSL

hsl(60, 100%, 25%)

LAB

lab(51.9, -12.9, 56.7)

What is Olive?

Olive is the olive reference in the CSS Named Colors. Its sRGB value is #808000 (rgb 128, 128, 0). It sits in the yellow family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Olive as a background.

Black text on this color

Sample text · 5.01 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 4.20 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Olive

An 11-step tonal scale derived from Olive (#808000). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #F5F5EB

50

#F5F5EB

#F5F5EB

Copied #EBEBD6

100

#EBEBD6

#EBEBD6

Copied #D6D6AD

200

#D6D6AD

#D6D6AD

Copied #C0C080

300

#C0C080

#C0C080

Copied #A0A040

400

#A0A040

#A0A040

Copied #808000

500

#808000

#808000

Copied #6D6D00

600

#6D6D00

#6D6D00

Copied #535300

700

#535300

#535300

Copied #3A3A00

800

#3A3A00

#3A3A00

Copied #202000

900

#202000

#202000

Copied #0F0F00

950

#0F0F00

#0F0F00

Lighter tints (mixed with white)

Copied #9C9C6C

15%

#9C9C6C

Copied #B3B395

30%

#B3B395

Copied #C7C7B3

45%

#C7C7B3

Copied #D8D8CB

60%

#D8D8CB

Copied #E8E8E1

75%

#E8E8E1

Darker shades (mixed with black)

Copied #777700

15%

#777700

Copied #6C6C00

30%

#6C6C00

Copied #616100

45%

#616100

Copied #535300

60%

#535300

Copied #424200

75%

#424200

Color harmonies for Olive

Classic color-theory harmonies derived from rotating the hue of Olive. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #808000

#808000

#808000

Copied #000080

#000080

#000080

Triadic

Three colors 120° apart

Copied #808000

#808000

#808000

Copied #007F80

#007F80

#007F80

Copied #80007F

#80007F

#80007F

Analogous

Two neighbors ±30° on the wheel

Copied #804000

#804000

#804000

Copied #808000

#808000

#808000

Copied #408000

#408000

#408000

Split-complementary

Base + two colors flanking its complement

Copied #808000

#808000

#808000

Copied #004080

#004080

#004080

Copied #400080

#400080

#400080

Tetradic

Two complementary pairs

Copied #808000

#808000

#808000

Copied #008000

#008000

#008000

Copied #000080

#000080

#000080

Copied #80007F

#80007F

#80007F

Square

Four colors evenly spaced 90° apart

Copied #808000

#808000

#808000

Copied #008040

#008040

#008040

Copied #000080

#000080

#000080

Copied #800040

#800040

#800040

Olive in every color space

Full conversion of Olive across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#808000

RGB

rgb(128, 128, 0)

CMYK

cmyk(0%, 0%, 100%, 50%)

HSL

hsl(60, 100%, 25%)

HSV

hsv(60, 100%, 50%)

HWB

hwb(60 0% 50%)

CIE Lab

lab(51.9 -12.9 56.7)

OKLCH

oklch(58.1% 0.127 109.8)

XYZ (D65)

xyz(16.62, 20.03, 2.99)

Copy-ready code for Olive

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #808000;
background-color: #808000;

CSS variable

:root {
  --color-olive: #808000;
}

Tailwind config

// tailwind.config.js
colors: {
  'olive': '#808000',
}

Sass

$color-olive: #808000;

Swift UIColor

UIColor(red: 0.502, green: 0.502, blue: 0.000, alpha: 1.0)

Android XML

<color name="olive">#808000</color>

Closest match in every color system

The nearest Olive equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #9D9101

RAL 1027

#9D9101

Curry

Copied #999950

RAL 1020

#999950

Olive yellow

Copied #A98307

RAL 1005

#A98307

Honey yellow

Copied #826C34

RAL 8000

#826C34

Green brown

Copied #AEA04B

RAL 1024

#AEA04B

Ochre yellow

Copied #9E9764

RAL 1019

#9E9764

Grey beige

FAQ about Olive

What is the HEX code for Olive?

Olive (olive) has the HEX code #808000. In RGB it is rgb(128, 128, 0), and in CMYK it is cmyk(0%, 0%, 100%, 50%).

What is the OKLCH value of Olive?

Olive converts to oklch(0.581 0.127 109.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Olive accessible for body text?

Used as a background, Olive has a contrast ratio of 5.01:1 with black text and 4.20:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Olive?

The closest Pantone reference to Olive by ΔE2000 perceptual distance is Pantone 385 C (#76881D). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Olive?

The closest RAL Classic reference to Olive by ΔE2000 distance is RAL 1027 (Curry, #9D9101). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Olive?

The complementary color (180° opposite on the HSL color wheel) of Olive is #000080. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
yellow

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Olive — #808000 | PantoneTools