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
| HEX | #008000 |
| RGB | rgb(0, 128, 0) |
| HSL | hsl(120, 100%, 25%) |
Harmonies
Complementary
Analogous
#408000#008040Split complementary
#400080#800040Tints & shades
Accessibility
| vs #ffffff | 5.14:1 |
| vs #000000 | 4.09:1 |
| Suggested text color | #ffffff · 5.14:1 · WCAG AA |
Similar named colors
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.