Green Color Code (#008000)

Green is #008000 in hex and rgb(0, 128, 0) — a dark green. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Green
#008000
CSS namegreen
Hex#008000
RGBrgb(0, 128, 0)
HSLhsl(120 100% 25%)
HWBhwb(120 0% 50%)
CMYK100%, 0%, 100%, 50%

Tints and shades

Color harmonies

About Green

Green (green) is a dark, vivid green with the hex code #008000, or rgb(0, 128, 0). In HSL it sits at a hue of 120°, 100% saturation and 25% lightness. It is one of the 148 named colors every browser understands, so you can write color: green; instead of the hex value.

Using Green for text and backgrounds

PairingContrast ratioWCAG
Green text on white5.14 : 1AA
Green text on black4.09 : 1AA large text only

On a green background, use white text (5.14 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: green;               /* or #008000 */
  background-color: #008000;
  border: 1px solid rgb(0 128 0 / 50%);
}

Similar named colors

Dark Green (#006400), Forest Green (#228b22), Sea Green (#2e8b57), Dark Olive Green (#556b2f), Dark Slate Gray (#2f4f4f), Lime Green (#32cd32).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for green?
#008000 — that is rgb(0, 128, 0) and hsl(120, 100%, 25%). In CSS you can also just write green.
Is green text readable on white?
Its contrast ratio on white is 5.14 : 1, which passes WCAG AA for normal text.
What colors go well with green?
Its complementary color is #800080; analogous colors #408000 and #008040 sit next to it on the color wheel.