#00FF00: CSS lime color codes, contrast and shades

By TechCompare · Updated · How we check

#00FF00 is rgb(0, 255, 0), the brightest green sRGB can show. CSS calls it lime, and saves the name green for the darker #008000. Only dark text works on it: black scores 15.30:1, white just 1.37:1.

#00FF00

Color Codes

  • HEX#00FF00
  • RGBrgb(0, 255, 0)
  • HSLhsl(120, 100%, 50%)
  • OKLCHoklch(86.64% 0.2948 142.5)

Text on #00FF00

White Text

Aa

The quick brown fox jumps over the lazy dog.

1.37:1APCA Lc -19.6

  • AA Normal (4.5:1)Fail
  • AA Large (3:1)Fail
  • AAA Normal (7:1)Fail
  • AAA Large (4.5:1)Fail
Check White Text in Contrast Checker

Black Text

Aa

The quick brown fox jumps over the lazy dog.

15.30:1APCA Lc 86.5

  • AA Normal (4.5:1)Pass
  • AA Large (3:1)Pass
  • AAA Normal (7:1)Pass
  • AAA Large (4.5:1)Pass
Check Black Text in Contrast Checker

WCAG 2 ratios are the same whichever color is the text, so they also hold for #00FF00 text on a white or black page. APCA is a newer method that isn't part of any WCAG standard, and a minus sign means light text on dark.

#00FF00 turns the green channel all the way up and leaves red and blue off. That's the green primary of sRGB, the green your screen's subpixels make on their own. It's also why a plain hex green looks so loud. In CSS it's lime, not green. The cards above give its codes and test white and black text on it. Below are 4 lighter and 4 darker shades.

Shades

Same hue and chroma in OKLCH, with even steps of lightness. Open any shade in the Color Picker.

  1. #D0FFCB
  2. #AFFFA8
  3. #86FF7D
  4. #3FFF39
  5. Base#00FF00
  6. #00CC00
  7. #009800
  8. #006800
  9. #003B00

Nearest Named Colors

  • CSS Name

    lime

    #00FF00

    ExactΔE OK 0.000
  • Tailwind 4

    lime-400

    oklch(84.1% 0.238 128.85)

    Outside sRGB, so the closest hex is #9AE600

    Not CloseΔE OK 0.089
  • Tailwind 3

    lime-400

    #A3E635

    Not CloseΔE OK 0.107

About #00FF00

The naming trips people up. CSS took sixteen of its color names from the old VGA palette, and in that set green is #008000, a much darker green at an OKLCH lightness of 51.98% against 86.64%. The X11 color list, where most other CSS names come from, used green for #00FF00. CSS kept the VGA meaning and calls #00FF00 lime instead.

Text contrast is lopsided. Black text on #00FF00 scores 15.30:1, past AAA, while white text gets 1.37:1 and fails at every size. The CSS green, #008000, flips that: white text on it scores 5.14:1 and passes AA.

On a wide gamut screen, sRGB's green isn't the limit. In CSS, color(display-p3 0 1 0) asks for the screen's own full green. On displays that cover Display P3, that green goes past anything a hex code can show.

Verdict

Use #00FF00 for small, bright accents on dark backgrounds, like status lights, terminal text or chart lines on black. It doesn't work as text on white, where it scores 1.37:1. For a green that holds up on white, darken it a lot.

The first two darker steps still fail AA with white text. The third, #006800, passes at 7.05:1. No Tailwind color matches it. The nearest in Tailwind 4, lime-400, is 0.089 away in OKLab and looks clearly different. Click a shade to open it in the Color Picker.

More Color scenarios

Hex to RGB
A hex color code is three RGB numbers written in base 16.
View details
RGB vs CMYK
Screens add light and print adds ink. See one color in both, and why a plain CMYK formula can't promise a print match.
View details
HSL color model
Hue, saturation and lightness, with three live sliders and a table of common colors in hex, RGB and HSL.
View details

Frequently asked questions

What color is #00FF00?
Pure green, with only the green channel on: rgb(0, 255, 0), hsl(120, 100%, 50%) or oklch(86.64% 0.2948 142.5). CSS calls it lime.
Why is #00FF00 called lime and not green?
Because CSS kept the color names HTML took from the VGA palette, and there green is #008000. The X11 list that most other CSS names come from calls #00FF00 green, but CSS couldn't use the same name twice, so #00FF00 became lime.
What text color works on #00FF00?
Black. It scores 15.30:1 and passes AAA. White text gets only 1.37:1 and fails at every size.