Green Color Code: Hex #008000
The hex code for Green is #008000 (the CSS keyword green). Green RGB code: rgb(0, 128, 0). The xkcd color survey gives #15B01A instead, which looks clearly different; both codes are below with their source.
#008000Top: the code browsers use#00FF00Below: compare edge to edgeGreen color codes: each Green hex code in every format
Sources
Properties
- Hex codes
- 3 different ones in 3 color lists; they look clearly different
- Family
- green
- Contrast
- 5.14:1 with white, 4.09:1 with black
- CSS keyword
- green
- Character
- dark, vivid
- Readable text on it
- white (AA)
The web’s green is a darker shade than X11’s green; the full-intensity X11 green was given the name lime when the W3C adopted the list.
A dark, vivid green. In code, green gives exactly this web value. If you mean the color as people usually picture the name, the survey value #15B01A is closer: it is lighter and more vivid.
White text reads best on it; black text works only for large headings. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Forest Green, its closest named neighbour, it looks darker, about as saturated and neither warmer nor cooler; beside Emerald Green it looks darker, about as saturated and neither warmer nor cooler. It is one of the darkest of the green family here. It is one of the 16 original HTML 4 color names.
Colors that go with Green
Complementary: the opposite of Green
#008000White text 5.14:1#963BA3White text 6.08:1#85B981Black text 9.25:1#5B2163White text 11.40:1
Analogous
#6A6F00White text 5.40:1#008000White text 5.14:1#007B63White text 5.23:1#A6CCA3Black text 11.79:1
Triadic
#008000White text 5.14:1#2C61CDWhite text 5.68:1#B92C36White text 6.04:1#C7DFC5Black text 14.79:1
Monochrome
#001F00White text 17.56:1#004D00White text 10.19:1#008000White text 5.14:1#64A65EBlack text 7.16:1#A6CCA3Black text 11.79:1
With neutrals
#008000White text 5.14:1#C7DFC5Black text 14.79:1#000B00White text 20.04:1#678165Black text 4.90:1
Preview
Heading on Green
Body text on this color, 5.14:1.
ButtonHeading in Green
Text in this color on white, 5.14:1.
ButtonTints and shades
#C7DFC5#A6CCA3#85B981#64A65E#3F933A#008000#006600#004D00#003500#001F00#000B00
WhiteGreenBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 3 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: