Color Converter Convert colors between HEX, RGB and HSL — free, instant, private.

#008000 Color Code

#008000 — rgb(0, 128, 0) — hsl(120, 100%, 25%). Closest color name: green.

HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
Complementary#800080 (hue + 180°)
CSS namegreen
color: #008000; background-color: rgb(0, 128, 0); border-color: hsl(120, 100%, 25%);



Shades and tints of #008000

Same hue and saturation, stepped through lightness — click any swatch for its own page:

#008000 is exactly the CSS named color green — see the green color code page.

Popular color codes

Convert any color with the HEX, RGB and HSL converter.

Common input mistakes (and fixes)

Why an HSL round trip can shift by one

This tool rounds HSL values to whole numbers, so converting away and back can drift slightly. Example: #f97316 becomes hsl(25, 95%, 53%), and converting that back gives rgb(249, 116, 21) — one step off on two channels. That is rounding, not a bug: whole-number HSL offers roughly 3.7 million combinations, while RGB has 16,777,216, so some colors simply have no exact HSL match. Treat the 6-digit HEX as the exact value and HSL as a close, editable approximation.

Frequently asked questions

What color is #008000?

#008000 is closest to green: rgb(0, 128, 0) in RGB and hsl(120, 100%, 25%) in HSL. Its complementary color (hue + 180°) is #800080.

How do I use #008000 in CSS?

Use color: #008000; for text, background-color: #008000; for surfaces, or the equivalents rgb(0, 128, 0) and hsl(120, 100%, 25%). For transparency use rgba(0, 128, 0, 0.5).