CSS Named Color Reference

Green Color Code

Green·#008000

Green FamilyNeutralDark toneHigh saturationoklch(52.0% 0.177 142)
HEX
#008000Primary token
RGB
rgb(0, 128, 0)Screen values
HSL
hsl(120 100% 25%)Hue and lightness
CMYK
100, 0, 100, 50Print handoff
LAB
46, -52, 50Perceptual reference
OKLCH
oklch(52.0% 0.177 142)Modern perceptual

Green is a deep, high-saturation CSS named color at #008000. If you searched for green hex code, 008000, or green RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorWhite text
Body text contrast5.14:1
Best UseSuccess states, natural brands, support actions, and calm interface signals

Tonal Scale

100#D1E8D1
300#8AC58A
500#2E972E
600#008000
800#005C00

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

5.14:1Safe for body text

Dark text on this color

Large headings and selective UI.

3.34:1Large text / UI only

This color on light surface

Links, borders, and icons on light UI.

4.88:1Safe for body text
Best text colorWhite textContrast 5.14:1

Professional Reference

OKLCHoklch(52.0% 0.177 142)
Relative Luminance0.1544
Source TypeCSS Named Color
Classification
Green FamilyNeutralDark toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Forest GreenAnt Design Green 8Ant Design Green 7
Color Notes
  • Green is kept as an exact CSS named color for #008000.
  • Queries for green color code, 008000, or green RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

5.14:1AA

Dark text on this color

Dark text or headings on the current color.

3.34:1Large text / UI only

This color on light surface

Use this color for links, strokes, or icons on light UI.

4.88:1AA

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

3.34:1Large text / UI only
Best text colorWhite textContrast 5.14:1 · AA

Where It Works

  • Use it for success states, support actions, ecology cues, and stable positive feedback.
  • Very bright greens need contrast testing before they become buttons or text backgrounds.
  • Pair with white, charcoal, soft neutrals, and nearby teal or yellow-green colors.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Green is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Natural greens for sustainability and calm systems.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-green: #008000;
  --color-green-rgb: 0 128 0;
}
Utility Class
class="bg-[#008000] text-white"
class="hover:bg-[#005C00] ring-1 ring-[#008000]"
JSON Token
{
  "green": "#008000",
  "greenRgb": [0, 128, 0],
  "greenHsl": [120, 100, 25]
}