Color Converter (HEX, RGB, HSL)→Specialized Version
🎨

Green HEX Code

Green color HEX code

HEX in
#008000
RGB out
rgb(0, 128, 0)
RGB
HSL

All formats

Lightness variations

Green HEX Code

The HEX code for pure green (lime) is #00FF00. Note that CSS "green" is actually #008000, while the pure green primary color is technically called "lime" in CSS.

Green Color Values

NameHEXRGB
Lime (pure)#00FF00rgb(0, 255, 0)
Green (CSS)#008000rgb(0, 128, 0)

Green Shades and Variations

ShadeHEXDescription
Light Green#90EE90Soft, spring-like
Lime Green#32CD32Vibrant, electric
Lime#00FF00Pure green
Green#008000CSS standard green
Forest Green#228B22Deep, natural
Dark Green#006400Very dark
Olive#808000Yellow-tinted
Teal#008080Blue-tinted

Green in Design

Green represents:

  • Nature: Environment, organic
  • Growth: Finance, health
  • Success: Positive actions, confirmations
  • Freshness: Food, wellness

CSS Usage

``css .success { color: #00FF00; /* Lime - pure green */ /* Or for CSS green */ color: #008000; /* green keyword */ } `

Brand Greens

BrandHEX
Spotify#1DB954
WhatsApp#25D366
Starbucks#00704A
Android#3DDC84

Green in Every Format

FormatValue
HEX#008000
RGBrgb(0, 128, 0)
HSLhsl(120, 100%, 25%)
CMYKcmyk(100%, 0%, 100%, 50%)
Nearest Tailwindgreen-800 (#166534)

About This Colour

CSS green is #008000, not #00FF00 — the bright one is lime. This trips people up constantly: the keyword is a half-intensity green inherited from the original 16 VGA colours.

Will It Pass Contrast?

CombinationRatioWCAG
Green text on white5.14:1AA
Green text on black4.09:1AA large text only
White text on green5.14:1AA
WCAG AA needs 4.5:1 for body text and 3:1 for text above 18pt or 14pt bold. Green passes on white, so it is safe for body text on a light background.

Building a Palette Around It

RoleColour
Lighter (+20%)#00e600
Base#008000
Darker (−20%)#001a00
Complementary#80007f
Triadic#000080, #800000
Tints (toward white): #40a040, #80c080, #bfdfbf

Shades (toward black): #006000, #004000, #002000

Using It

`css :root { --green: #008000; --green-light: #00e600; --green-dark: #001a00; }

.badge { background: var(--green); color: #000; } `

Define the colour once as a custom property rather than repeating the hex. When the brand changes — and it will — you edit one line instead of grepping a stylesheet.

A Full Ramp From This Colour

Design systems settle on a 50–900 scale because it covers backgrounds, borders, text and states without anyone reaching outside the palette. Mixing toward white and black rather than adjusting HSL lightness keeps more of the hue's character:

StepColourContrast on whiteSafe for
50#F5F9FF1.06:1backgrounds and fills
100#EBF3FE1.12:1backgrounds and fills
200#CEE0FD1.34:1backgrounds and fills
300#B1CDFB1.62:1backgrounds and fills
400#76A8F92.40:1backgrounds and fills
500#3B82F63.68:1large text, borders
600#326FD14.85:1body text on white
700#295BAC6.59:1body text on white
800#2048878.98:1body text on white
900#18346212.31:1body text on white
The contrast column is the one that decides usage. Steps below 3:1 cannot carry text at any size and belong in fills and dividers; steps at 4.5:1 and above are safe for body copy.

Adjusting It

Base colour in HSL is hsl(217, 91%, 60%). Two useful moves:

`css /* +10% lightness, same hue */ --lighter: #6da2f8; /* −10% lightness */ --darker: #0b64f4; ``

Raising lightness also drops perceived saturation, so a lightened colour reads greyer than its numbers suggest. Adding 5–10% saturation alongside every 20% of lightness keeps the ramp looking like one hue rather than a fade to grey.

Frequently Asked Questions

What is green in HEX?

#00FF00 is pure green (lime), while CSS "green" is #008000.

Why are green and lime different?

CSS "green" (#008000) is darker. Lime (#00FF00) is the pure RGB green.

What is forest green HEX?

Forest green is #228B22, a deep natural green.

Related Tools

Explore other tools you might find useful:

More Color Converter (HEX, RGB, HSL) tools

You might also need