#008000
green
#008000 is the CSS named color "green", an exact match. In RGB it breaks down to red 0, green 128, and blue 0 out of 255 each. In HSL terms that's a hue of 120°, 100% saturation, and 25% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.
Every format
| HEX | #008000 |
| RGB | rgb(0, 128, 0) |
| HSL | hsl(120° 100% 25%) |
| HSB | hsb(120° 100% 50%) |
| OKLCH | oklch(52% 0.177 142°) |
| OKLAB | oklab(52% -0.140 0.108) |
| LCH | lch(46% 68.0 134°) |
| CMYK | cmyk(100% 0% 100% 50%) |
Shades (darker)
#008000 · #007300 · #006700 · #005b00 · #004f00
Tints (lighter)
#008000 · #208f1c · #349e2f · #45ad40 · #55bd4f
Shades mix #008000 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 5.14:1 — AA
On black: 4.09:1 — AA (large text only)
Frequently asked
- What is #008000 in RGB?
- #008000 is rgb(0, 128, 0) — red 0, green 128, blue 0 out of 255 each.
- Does #008000 pass WCAG contrast on a white background?
- It has a contrast ratio of 5.14:1 against white, which passes WCAG AA for normal text.
- What's a good background color to pair with #008000?
- White text or a white background gives better contrast (5.14:1) than black (4.09:1).