#008000

green

#008000 is a green colour. In RGB it is 0 red, 128 green and 0 blue, which converts to a hue of 120 degrees, 100% saturation and 25% lightness. It is one of the named CSS colours, written as green in stylesheets.

Color values

HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
HSVhsv(120, 100%, 50%)
CMYKcmyk(100%, 0%, 100%, 50%)

Contrast and accessibility

Against white the contrast ratio is 5.14:1, and against black it is 4.09:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

BackgroundRatioNormal textLarge text
White5.14:1AAAAA
Black4.09:1FailAA

Tints and shades

Lighter tints move #008000 toward white, and darker shades move it toward black.

Tints

Shades

Color harmonies

Complementary

Analogous

Triadic

Split complementary

Code

CSScolor: #008000;
CSS rgb()color: rgb(0 128 0);
Tailwindbg-[#008000]
SwiftUIColor(red: 0.000, green: 0.502, blue: 0.000)
AndroidColor.parseColor("#008000")

Related tools