CSS Named Color

Copy-ready color values

HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
HSVhsv(120, 100%, 50%)
CMYK approx.cmyk(100, 0, 100, 50)

Color value table

FormatValueCopy
HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
HSVhsv(120, 100%, 50%)
CMYK approx.cmyk(100, 0, 100, 50)
CSS keywordgreen

Contrast and classification

DarkLightness5.14:1Contrast with white4.09:1Contrast with blackGreen / TealColor family

Shade and tint preview

White 10%
#1A8D1A

White 30%
#4DA64D

White 70%
#B3D9B3

White 90%
#E6F2E6

Black 10%
#007300

Black 30%
#005A00

Black 70%
#002600

Black 90%
#000D00

Harmony palettes

Complementary

#FF7FFF
#FF9EFF

Analogous

#0F8000
#00710F

Triadic

#800000
#000080

Split complementary

#FF96FF
#D168D1

Using Green

Green works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-green: #008000;
}

.button-primary {
  background: var(--color-green);
  color: #ffffff;
}

$green: #008000;

// Tailwind arbitrary value
class="bg-[#008000] text-white"