green (#008000)

green is a CSS named color with the hex code #008000, rgb(0, 128, 0). It is a dark, vivid green.

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

Full #008000 details: palettes, shades, color-blind view →

Description

Green has a hue of 120°, saturation 100% and lightness 25%, which places it in the green family. Its strongest channel is green (128).

Using green in CSS

.title { color: green; }
.box   { background: green; border-color: #008000; }
.soft  { background: rgb(0 128 0 / 20%); }   /* green at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
forestgreen#228b2234, 139, 344.6
darkgreen#0064000, 100, 09.4
seagreen#2e8b5746, 139, 8712
olivedrab#6b8e23107, 142, 3512.4
darkolivegreen#556b2f85, 107, 4712.8
olive#808000128, 128, 019.2
mediumseagreen#3cb37160, 179, 11320.1
limegreen#32cd3250, 205, 5023.8

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 5.14:1; with black text: 4.09:1. White body text on green meets WCAG AA.

Frequently asked questions

What is the hex code for green?
#008000.
What colors are similar to green?
forestgreen (#228b22), darkgreen (#006400), seagreen (#2e8b57).