Color codes

Green hex code #008000

#008000 is green as CSS names it. It is a mid-dark green, half the screen's green light and nothing else.

Green #008000 CSS named color: green

Green color codes

HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
CMYKcmyk(100%, 0%, 100%, 50%)
More formats and code
HSV / HSBhsv(120, 100%, 50%)
OKLCHoklch(0.52 0.177 142.5)
RGB numbers0, 128, 0
CSScolor: #008000;
Tailwindbg-[#008000]
SwiftUIColor(red: 0.000, green: 0.502, blue: 0.000)
AndroidColor.parseColor("#008000")

CMYK here is a plain formula. Ask your print shop for the numbers their press uses.

Open in a tool: ConverterShade generatorContrast checkerColor wheelPalette generatorColor blindness simulator

Lighter and darker green

Each step mixes in more white or black, in even steps for the eye. Tap a swatch to copy its code.

Lighter

Darker

Colors that go with green

Complementary

Across the color wheel. Strong contrast, good for one button or one word.

Analogous

Its neighbors on the wheel. Calm, easy to use together.

Triadic

Three colors evenly spread. Lively, best with one in charge.

Pairs well in a brand

Green and text

White text reads best on green: 5.13:1. The same numbers hold for green text on a white or a black page. Body text needs 4.5:1 for AA and 7:1 for AAA; large text needs 3:1.

TextContrastWCAG
AaWhite text on green5.13:1AA
AaBlack text on green4.08:1AA large
Text in the sample post
How green looks with color blindness

Other green hex codes

The full-strength screen green, #00FF00, is called lime in CSS, and many people expect that when they type green. Forest green #228B22 and dark green #006400 are the deeper greens of outdoor and garden brands, sea green #2E8B57 is cooler, and lime green #32CD32 sits in between.

  • GreenCSS named color: green. The code on this page#008000
  • LimeCSS named color: lime#00FF00
  • Forest greenCSS named color: forestgreen#228B22
  • Dark greenCSS named color: darkgreen#006400
  • Sea greenCSS named color: seagreen#2E8B57
  • Lime greenCSS named color: limegreen#32CD32

Green in a small business brand

Green says fresh, natural and growing: garden centers, health food, cleaning products, outdoor gear. The CSS green carries white text well, so it suits buttons and post backgrounds. Bright lime is for small accents only. Many people cannot tell red from green, so never let green alone mean yes next to a red no.

FAQ

What is the hex code for green?

Green is #008000 as the CSS named color green. In RGB that is rgb(0, 128, 0), and in CMYK cmyk(100%, 0%, 100%, 50%).

What text color goes on green?

White text, at a contrast of 5.13:1, which passes WCAG AA. Black text reaches 4.08:1, enough for large text only.

Why is CSS green so dark?

CSS green #008000 uses half the screen's green light. The full-strength green #00FF00 is called lime in CSS.

What is the hex code for forest green?

CSS forest green is #228B22, which is rgb(34, 139, 34).

More color codes

All color codes

Keep your brand colors in one place

Add your brand colors once in Postfjord's design editor, under Settings, Brand, and every template can use them. Try it free.

Start free