Green Color — HEX, RGB, HSL & CMYK Codes

#008000
Format Value
HEX #008000
RGB rgb(0, 128, 0)
HSL hsl(120, 100%, 25.1%)
CMYK cmyk(100%, 0%, 100%, 49.8%)
HSV hsv(120, 100%, 50.2%)

green color harmonies

Tints & shades of green

Tints (lighter)

#178c17 #2e972e #46a346 #5dae5d #74ba74 #8bc58b #a2d1a2 #b9dcb9 #d1e8d1 #e8f3e8

Shades (darker)

#007400 #006900 #005d00 #005100 #004600 #003a00 #002f00 #002300 #001700 #000c00

Contrast & accessibility

The quick brown fox

On white · 5.14:1 · AA

The quick brown fox

On black · 4.09:1 · AA Large

Recommended text color: #ffffff

Use green in code

CSS color: #008000;
SCSS $color: #008000;
Tailwind bg-[#008000]
Swift UIColor(red: 0.000, green: 0.502, blue: 0.000, alpha: 1)
Android Color.parseColor("#008000")
Flutter Color(0xFF008000)

Colors similar to green

Browse all Green colors →

What is the HEX code for green?

The CSS color green in HEX format is #008000. Use this value directly in CSS, SVG, and most design tools.

How do I use green in CSS?

To apply green in CSS:

  • Text color: color: #008000;
  • Background: background-color: #008000;
  • Border: border-color: #008000;

What are all the color format values for green?

FormatValue
HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25.1%)
CMYKcmyk(100%, 0%, 100%, 49.8%)

How do I convert green to HEX?

Select green from the color name list in our color converter. The HEX value — #008000 — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does green belong to?

green belongs to the green color family. It is a dark, vivid color with HSL values: hue 120°, saturation 100%, lightness 25.1%.

How do I create lighter and darker shades of green?

Lighter variant (lightness 40.1%): #00cd00. Darker variant (lightness 10.100000000000001%): #003400. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HEX used for?

HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.