Swatchproof

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 keywordgreen
HEX#008000
RGBrgb(0 128 0)
HSLhsl(120 100% 25%)
OKLCHoklch(52.0% 0.177 142.5)
White text5.14:1 · body text AA Pass
Black text4.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.

ColourHEXContrast with GreenBody text AA
Yellow#FFF2004.39:1Fail
Black#1113143.63:1Fail
Ochraceous Salmon#D8A37B2.31:1Fail
Eosine Pink#F37F942.02:1Fail
Slate Color#34454C1.95:1Fail
Deep Lyons Blue#1C42861.88:1Fail
Pale Burnt Lake#8026261.84:1Fail
Khaki#BC892B1.65:1Fail
Red#A721441.39:1Fail
Deep Grayish Olive#635A3A1.34:1Fail
Carmine#CC12361.10:1Fail
Burnt Sienna#AE52241.01:1Fail

Palettes with Diamine Green

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.

: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

Similar CSS colours