#008000At hue 120° with 100% saturation, green lands firmly in the green family — a cool color through and through. Colors in this range are commonly associated with growth, nature and reassurance, which makes green a natural fit for success states, environmental themes and finance products.
With a 5.14:1 contrast ratio against white, green is dark enough to carry white text at any size — use it confidently for buttons, headers and filled UI elements. It is also dark enough to serve as a background in a dark theme, where lighter tints of green can act as hover and border states.
For pairings, the complement of green sits at 300° — #80007F, close to purple — and delivers the strongest possible hue contrast; use it sparingly, in roughly a 90/10 split, so the two don't fight. For calmer schemes, the analogous colors 30° to either side keep the same cool temperature, while the triadic pair gives you a balanced three-color palette. All of these are computed for green in the palettes below, with copy-ready codes.
Every palette below is computed from green's position on the color wheel (hue 120°). Hover any swatch to see its code; click to copy.
Tints mix green toward white; shades mix it toward black. Use the scale for hover states, borders and depth without leaving the hue.
WCAG 2.1 requires 4.5:1 for normal text (AA) and 3:1 for large text. Here's how green performs, plus how it appears under the three main types of dichromatic color blindness (simulated approximation).
| Pairing | Ratio | Normal text | Large text |
|---|---|---|---|
| White text on Green | 5.14:1 | AA | AAA |
| Black text on Green | 4.09:1 | Fail | AA |
#37391F#302626#06373DCopy-ready snippets. In CSS you can also use the keyword green directly.
:root {
--green: #008000;
--green-rgb: 0, 128, 0;
--green-tint: #73B973;
--green-shade: #004600;
}
.btn-green {
background: var(--green);
color: #ffffff;
}
// tailwind.config.js
colors: {
'green': {
DEFAULT: '#008000',
light: '#73B973',
dark: '#004600',
},
}
The closest CSS named colors by perceptual (Lab) distance.