Green color #008000
rgb(0, 128, 0) · oklch(52% 0.177 142.5)
Green (#008000) is a medium, vivid, cool green. It mixes 0% red, 50% green and 0% blue, with a perceived lightness of 52% in OKLCH. White text reads best on it (5.13:1 vs 4.08:1). The closest other CSS color is Forest Green (#228B22). For people with protanopia it shifts the most, toward #837200.
Green color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of green
Shades mix green with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Green as a UI color scale (50–950)
An 11-step scale for design systems, with green placed at step 600. Copy it as a Tailwind v4 theme below.
Colors that go with green
Harmonies are computed on the OKLCH hue wheel, keeping green’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is green accessible? Contrast with white and black
5.13:1
AA pass AA large pass AAA fail
4.08:1
AA fail AA large pass AAA fail
- As a background, green works best with white text.
- For body text on black, use the lighter variant .
How green looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#837200 Red-blind. Reds look dark and brownish; red and green are easily confused.
#776a18 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#007c6c Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#6d6d6d Total color blindness, very rare. Only lightness differences are visible.
Colors similar to green
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use green in CSS and Tailwind
CSS custom properties
:root {
--green: #008000;
--green-rgb: 0 128 0;
}
.text-green { color: var(--green); }
.bg-green { background-color: var(--green); }
Tailwind v4 theme
@theme {
--color-green-50: #f5f8f4;
--color-green-100: #e3f2e2;
--color-green-200: #b3edae;
--color-green-300: #6cdf65;
--color-green-400: #33c12e;
--color-green-500: #00a300;
--color-green-600: #008000;
--color-green-700: #146b12;
--color-green-800: #1b5218;
--color-green-900: #1b3f19;
--color-green-950: #122510;
}
Make a gradient from green: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.