Green — #008000
The hex code for green is #008000 — rgb(0, 128, 0), hsl(120, 100%, 25%). Use it in CSS as color: #008000;.
Green is the color of grass, leaves, and growth. It reads as natural, healthy, and calm, and it is the standard color for “go”, success, and confirmation.
Green color codes — click to copy
#008000rgb(0, 128, 0)hsl(120, 100%, 25%)hsv(120, 100%, 50%)cmyk(100%, 0%, 100%, 50%)Shades, tints & tones of green
Click any swatch to copy it.
Green harmonies
Click a swatch to copy it.
Colors that go with green
| Color | Hex | |
|---|---|---|
| White | #FFFFFF | |
| Beige | #F5F5DC | |
| Brown | #A52A2A | |
| Gold | #FFD700 |
Where green is used
Use green for environmental brands, health and finance (growth, “in the green”), and success messages. Pair it with cream or brown for an organic feel.
What green is often associated with: Growth, nature, health, and balance.
Contrast — can you read text on green?
White text on green scores 5.14:1
Normal text: AA Pass AAA Fail
Large text (18pt+, or 14pt bold+): AA Pass AAA Pass
Black text scores 4.09:1Normal text: AA Fail AAA Fail
Large text (18pt+, or 14pt bold+): AA Pass AAA Fail
Check any pair in the contrast checker →How green looks with color blindness
Simulated with the Machado matrices. Click a swatch to copy the simulated color.
Protanopia
Deuteranopia
Tritanopia
This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.
Frequently asked questions
What is the hex code for green?
The hex code for green is #008000.
What is the RGB of green?
The RGB of green is rgb(0, 128, 0).
What colors go with green?
Colors that go well with green include white (#FFFFFF), beige (#F5F5DC), brown (#A52A2A). See the pairings table on this page for the full list.
Is green a good color for a website?
Green works well as an accent or background — white text on it scores 5.14:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.
What does the color green mean?
Growth, nature, health, and balance.
Related tools
Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker