green green #008000

green is #008000 in hexadecimal, rgb(0, 128, 0) in decimal and hsl(120, 100, 25) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#008000
HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)

Harmonies

Complementary

Analogous

#408000#008040

Triadic

Split complementary

#400080#800040

Tints & shades

#006b00#007500#008000#008a00#009400

Accessibility

vs #ffffff5.14:1
vs #0000004.09:1
Suggested text color#ffffff · 5.14:1 · WCAG AA

Similar named colors

darkgreen#006400forestgreen#228b22seagreen#2e8b57darkolivegreen#556b2fdarkslategray#2f4f4fdarkslategrey#2f4f4f

FAQ

What is the HEX code for green?

green is #008000 in hex, rgb(0, 128, 0) in decimal and hsl(120, 100%, 25%) in HSL. In CSS you can write either color: green; or color: #008000; — they are equivalent.

What colors go with green?

The complementary #800080 gives the strongest contrast, the analogous pair #408000 / #008040 is the safest, and the triad #000080 / #800000 adds more tension. All three are derived from the 120° hue of #008000.

Does #008000 read better on white or black?

Its contrast is 5.14:1 against white and 4.09:1 against black. Use #ffffff text on it — that gives 5.14:1, which meets WCAG AA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors