#4CAF50: Material Design Green 500 codes and contrast
By TechCompare · Updated · How we check
#4CAF50 is rgb(76, 175, 80), Green 500 in Google's Material Design palette. WCAG 2 wants black text on it, at 7.56:1. White text scores 2.78:1 and fails even for large text.
Color Codes
- HEX
#4CAF50 - RGB
rgb(76, 175, 80) - HSL
hsl(122, 39%, 49%) - OKLCH
oklch(67.31% 0.1624 144.21)
Text on #4CAF50
White Text
Aa
The quick brown fox jumps over the lazy dog.
2.78:1APCA Lc -58.5
- 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.
7.56:1APCA Lc 50.8
- 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 #4CAF50 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.
#4CAF50 mixes 76 red, 175 green and 80 blue into a medium, slightly soft green. It's Green 500 in the Material Design color palette, the main shade of its green swatch, and Flutter's Colors.green is this exact value. The cards above give its codes and test white and black text on it. Below are 4 lighter and 4 darker shades, and the named colors that come closest.
Shades
Same hue and chroma in OKLCH, with even steps of lightness. Open any shade in the Color Picker.
Nearest Named Colors
CSS Name
mediumseagreen
#3CB371
CloseΔE OK 0.036Tailwind 4
green-600
oklch(62.7% 0.194 149.214)
Outside sRGB, so the closest hex is #00A63E
Not CloseΔE OK 0.058Tailwind 3
lime-600
#65A30D
CloseΔE OK 0.046
About #4CAF50
Material Design gives each hue a swatch of shades from 50 to 900, and the 500 step is the swatch's main color. For green, the swatch runs from Green 50, #E8F5E9, to Green 900, #1B5E20, with #4CAF50 in the middle. Flutter ships the same values, so Colors.green.shade700 is #388E3C and shade800 is #2E7D32.
Green buttons with white labels are a common sight, but on #4CAF50 that pairing fails WCAG 2. White text scores 2.78:1, under even the 3:1 for large text. Black text scores 7.56:1 and passes AAA. APCA, a newer method that isn't part of any WCAG standard, leans the other way and rates white text a little ahead, at Lc -58.5 against Lc 50.8 for black.
To keep white labels, darken the green. The first darker step, #2B9233, gets white text to 3.99:1, enough only for large text. The second, #007510, reaches 5.91:1 and passes AA. Inside Material's own swatch, Green 700 still falls short at 4.12:1, and Green 800 passes at 5.13:1.
Verdict
Use #4CAF50 for success states, badges, icons and chart series, with black text when text sits on it. Don't put white text on it: at 2.78:1 it fails WCAG 2 at every size. For a green button with a white label, step down to Green 800, #2E7D32, or the second darker shade below.
Don't let green carry meaning on its own. Red and green are the pair people with the most common kinds of color blindness mix up, so give a success state an icon or a word as well.
More Color scenarios
Related guides
Frequently asked questions
What color is #4CAF50?
Can I use white text on #4CAF50?
Is #4CAF50 a Tailwind color?
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