Green color: hex codes, shades and palettes

Palettes built around green. Click any swatch to copy its hex code.

Green is #008000 — deep vivid green. Below are its shades with hex codes, the values in every common format, and green color palettes to copy.

Green hex, RGB, HSL and OKLCH

#008000
HEX
#008000
RGB
rgb(0, 128, 0)
HSL
hsl(120, 100%, 25%)
OKLCH
oklch(52.0% 0.177 142.5)
On white
5.14:1
On black
4.09:1

Shades of green

Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.

Contrast and readability

Green on white measures 5.14:1 and on black 4.09:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 4.95:1.

The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.

Related colors:lime green, mint, olive, emerald, hunter green. See every shade on the colors index.