About green
CSS green (#008000) is a medium-dark green, with the green channel at about half strength. Full-strength green is named lime (#00FF00). Both names are among the 16 HTML 4 colors, where green was defined as the darker of the two.
Other CSS greens range from forestgreen (#228B22) and seagreen (#2E8B57) to the bright limegreen (#32CD32).
Shades and tints of green
Green lands on the 700 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For green mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with green
Partner hues are picked on the OKLCH color wheel.
Complementary: the opposite hue
Open in the palette generator · Compare the screen and painter's complements of green
Analogous: neighboring hues 30° either side
Open in the palette generator · See analogous and monochromatic colors of green on three wheels
Triadic: three hues 120° apart
Split complementary: the two hues beside the complement
Text on green
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 5.14:1 | Pass | Pass | Fail |
| Black | 4.09:1 | Fail | Pass | Fail |
The ratio is the same either way round, so green text on a white background is also 5.14:1. Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to green, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
green-700 v4: green-700, #008236, deltaE OK 0.032
green-700 v3: green-700, #15803D, deltaE OK 0.045
In Tailwind CSS v4 it is green-700 (#008236), and in v3 green-700 (#15803D). For the exact color, use an arbitrary value such as bg-[#008000]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Green with color vision deficiency
An approximation of how green may look with protanopia, deuteranopia and tritanopia (simulated with Machado, Oliveira and Fernandes, 2009), and with achromatopsia, shown as a gray of the same luminance.
Test a whole palette or image in the color blindness simulator.
Using green in code
.example {
color: green; /* named color */
background-color: #008000; /* hex */
border-color: rgb(0, 128, 0);
}
