#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.
Color Codes
- HEX
#00FF00 - RGB
rgb(0, 255, 0) - HSL
hsl(120, 100%, 50%) - OKLCH
oklch(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
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
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.
Nearest Named Colors
CSS Name
lime
#00FF00
ExactΔE OK 0.000Tailwind 4
lime-400
oklch(84.1% 0.238 128.85)
Outside sRGB, so the closest hex is #9AE600
Not CloseΔE OK 0.089Tailwind 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
Related guides
Frequently asked questions
What color is #00FF00?
Why is #00FF00 called lime and not green?
What text color works on #00FF00?
Related tools
Contrast Checker
Check color contrast ratios for WCAG AA/AAA accessibility compliance.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolAspect Ratio Visualizer
Visually compare width differences between 16:9, 21:9, and 32:9 monitors.
Use tool