Green #008000
Green is one of the named colours in CSS, written green. White text reaches 5.14:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | green |
|---|---|
| HEX | #008000 |
| RGB | rgb(0 128 0) |
| HSL | hsl(120 100% 25%) |
| OKLCH | oklch(52.0% 0.177 142.5) |
| White text | 5.14:1 · body text AA Pass |
| Black text | 4.09:1 · body text AA Fail |
Colours that go with Green
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Diamine Green (#1A7444), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Green itself.
| Colour | HEX | Contrast with Green | Body text AA |
|---|---|---|---|
| Yellow | #FFF200 | 4.39:1 | Fail |
| Black | #111314 | 3.63:1 | Fail |
| Ochraceous Salmon | #D8A37B | 2.31:1 | Fail |
| Eosine Pink | #F37F94 | 2.02:1 | Fail |
| Slate Color | #34454C | 1.95:1 | Fail |
| Deep Lyons Blue | #1C4286 | 1.88:1 | Fail |
| Pale Burnt Lake | #802626 | 1.84:1 | Fail |
| Khaki | #BC892B | 1.65:1 | Fail |
| Red | #A72144 | 1.39:1 | Fail |
| Deep Grayish Olive | #635A3A | 1.34:1 | Fail |
| Carmine | #CC1236 | 1.10:1 | Fail |
| Burnt Sienna | #AE5224 | 1.01:1 | Fail |
Palettes with Diamine Green
- Combination #38 Diamine Green · Deep Lyons Blue
- Combination #146 Khaki · Deep Grayish Olive · Diamine Green
- Combination #217 Pale Burnt Lake · Ochraceous Salmon · Diamine Green
- Combination #242 Eosine Pink · Burnt Sienna · Diamine Green · Black
- Combination #251 Red · Yellow · Diamine Green · Slate Color
- Combination #313 Carmine · Yellow · Diamine Green · Black
Shades and tints of Green
Nine lightness steps in OKLCH that keep the hue of Green. Chroma is reduced only where sRGB cannot show it.
- 100#E1FFDE
- 200#A5FF9D
- 300#83EA7C
- 400#65CC5F
- 500#44AC3E
- 600#178914
- 700#006900
- 800#004900
- 900#002B00
:root {
--green-100: #E1FFDE;
--green-200: #A5FF9D;
--green-300: #83EA7C;
--green-400: #65CC5F;
--green-500: #44AC3E;
--green-600: #178914;
--green-700: #006900;
--green-800: #004900;
--green-900: #002B00;
}
Text that keeps Green on screen
Text #008000 on #E1FFDE reaches 4.79:1, which passes WCAG AA for body text. Check it on a dashboard