Green #008000

Green#008000 · rgb(0, 128, 0)

Green color codes

CSS namegreen
HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
CMYKcmyk(100%, 0%, 100%, 50%)
Decimal32768

Shades of Green (darker)

#007300 · #006600 · #005A00 · #004D00 · #004000 · #003300 · #002600 · #001A00 · #000D00

Tints of Green (lighter)

#1A8D1A · #339933 · #4DA64D · #66B366 · #80C080 · #99CC99 · #B3D9B3 · #CCE6CC · #E6F2E6

Color harmonies

Complementary
#800080
Triadic
#000080, #800000
Analogous
#408000, #008040

Accessibility (WCAG contrast)

White text on Green5.14:1 · AA
Black text on Green4.09:1 · AA large text only

Use Green in code

.element {
  color: green;          /* or #008000 */
  background-color: rgb(0 128 0 / 0.5);
}

Frequently asked questions

What is the hex code for Green?

Green is #008000 in HEX, rgb(0, 128, 0) in RGB and hsl(120, 100%, 25%) in HSL.

Can I use "green" directly in CSS?

Yes. "green" is one of the 148 standard CSS named colors, so color: green; works in every browser.

Is Green readable on white?

The contrast ratio of Green on white is 5.14:1 (WCAG AA). On black it is 4.09:1 (AA large text only).

What is the complementary color of Green?

The complementary color (opposite on the color wheel) is #800080.

Similar colors

Convert any color with the Color Converter, generate palettes with the Random Color Generator, or browse all 148 CSS color names.