Skip to content
PantoneTools
green
CSS Named Colors

Green

green · #008000

HEX

#008000

RGB

rgb(0, 128, 0)

CMYK

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

HSL

hsl(120, 100%, 25%)

LAB

lab(46.2, -51.7, 49.9)

What is Green?

Green is the green reference in the CSS Named Colors. Its sRGB value is #008000 (rgb 0, 128, 0). It sits in the green 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 Green as a background.

Black text on this color

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

White text on this color

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

Shades, tints & tonal scale of Green

An 11-step tonal scale derived from Green (#008000). 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 #EBF5EB

50

#EBF5EB

#EBF5EB

Copied #D6EBD6

100

#D6EBD6

#D6EBD6

Copied #ADD6AD

200

#ADD6AD

#ADD6AD

Copied #80C080

300

#80C080

#80C080

Copied #40A040

400

#40A040

#40A040

Copied #008000

500

#008000

#008000

Copied #006D00

600

#006D00

#006D00

Copied #005300

700

#005300

#005300

Copied #003A00

800

#003A00

#003A00

Copied #002000

900

#002000

#002000

Copied #000F00

950

#000F00

#000F00

Lighter tints (mixed with white)

Copied #6C9C6C

15%

#6C9C6C

Copied #95B395

30%

#95B395

Copied #B3C7B3

45%

#B3C7B3

Copied #CBD8CB

60%

#CBD8CB

Copied #E1E8E1

75%

#E1E8E1

Darker shades (mixed with black)

Copied #007700

15%

#007700

Copied #006C00

30%

#006C00

Copied #006100

45%

#006100

Copied #005300

60%

#005300

Copied #004200

75%

#004200

Color harmonies for Green

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

Complementary

180° opposite — strongest contrast

Copied #008000

#008000

#008000

Copied #80007F

#80007F

#80007F

Triadic

Three colors 120° apart

Copied #008000

#008000

#008000

Copied #000080

#000080

#000080

Copied #800000

#800000

#800000

Analogous

Two neighbors ±30° on the wheel

Copied #408000

#408000

#408000

Copied #008000

#008000

#008000

Copied #008040

#008040

#008040

Split-complementary

Base + two colors flanking its complement

Copied #008000

#008000

#008000

Copied #400080

#400080

#400080

Copied #800040

#800040

#800040

Tetradic

Two complementary pairs

Copied #008000

#008000

#008000

Copied #007F80

#007F80

#007F80

Copied #80007F

#80007F

#80007F

Copied #800000

#800000

#800000

Square

Four colors evenly spaced 90° apart

Copied #008000

#008000

#008000

Copied #004080

#004080

#004080

Copied #80007F

#80007F

#80007F

Copied #804000

#804000

#804000

Green in every color space

Full conversion of Green 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

#008000

RGB

rgb(0, 128, 0)

CMYK

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

HSL

hsl(120, 100%, 25%)

HSV

hsv(120, 100%, 50%)

HWB

hwb(120 0% 50%)

CIE Lab

lab(46.2 -51.7 49.9)

OKLCH

oklch(52.0% 0.177 142.5)

XYZ (D65)

xyz(7.72, 15.44, 2.57)

Copy-ready code for Green

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: #008000;
background-color: #008000;

CSS variable

:root {
  --color-green: #008000;
}

Tailwind config

// tailwind.config.js
colors: {
  'green': '#008000',
}

Sass

$color-green: #008000;

Swift UIColor

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

Android XML

<color name="green">#008000</color>

Closest match in every color system

The nearest Green 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 #287233

RAL 6001

#287233

Emerald green

Copied #308446

RAL 6024

#308446

Traffic green

Copied #4C9141

RAL 6017

#4C9141

May green

Copied #35682D

RAL 6010

#35682D

Grass green

Copied #3D642D

RAL 6025

#3D642D

Fern green

Copied #587246

RAL 6011

#587246

Reseda green

FAQ about Green

What is the HEX code for Green?

Green (green) has the HEX code #008000. In RGB it is rgb(0, 128, 0), and in CMYK it is cmyk(100%, 0%, 100%, 50%).

What is the OKLCH value of Green?

Green converts to oklch(0.520 0.177 142.5). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Green accessible for body text?

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

What is the closest Pantone to Green?

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

What is the closest RAL color to Green?

The closest RAL Classic reference to Green by ΔE2000 distance is RAL 6001 (Emerald green, #287233). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Green?

The complementary color (180° opposite on the HSL color wheel) of Green is #80007F. 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
green

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 · Green — #008000 | PantoneTools