Green Yellow Hex Code #ADFF2F
Green Yellow is a very light, vivid green with the hex code #ADFF2F. In RGB it is 173, 255, 47, and in HSL it is 84°, 100%, 59%. It is one of the 148 named colors in CSS, so you can write “greenyellow” instead of the hex code.
- HEX
- #ADFF2F
- RGB
- rgb(173, 255, 47)
- HSL
- hsl(84, 100%, 59%)
- HSV
- hsv(84°, 82%, 100%)
- CMYK
- cmyk(32%, 0%, 82%, 0%)
- CSS name
- greenyellow
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Green Yellow
On a white background Green Yellow has a contrast ratio of 1.23:1 (Fail), and on black 17.12:1 (AAA). Black text is the better choice on top of it.
It sits between the warm and cool halves of the color wheel, so it pairs comfortably with either.
Green suggests growth, health and success, so it is common for confirmations, finance and eco brands. Check text contrast carefully, because many mid-tone greens fall short of the WCAG minimum with white text.
Shades and tints of Green Yellow
Tints mix Green Yellow with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Green Yellow
These schemes are calculated from Green Yellow on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Green Yellow is #FF2FE1, close to the named color Magenta.
Green Yellow contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Green Yellow scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.23:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 17.12:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Green Yellow and color blindness
These are approximate previews of how Green Yellow can look with the main types of color vision deficiency.
Green Yellow changes noticeably.
Green Yellow changes noticeably.
Green Yellow changes noticeably.
Green Yellow changes noticeably.
Gradients with Green Yellow
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Green Yellow to a lighter tint
background: linear-gradient(135deg, #adff2f 0%, #deffac 100%); Green Yellow to its analogous neighbour
background: linear-gradient(135deg, #adff2f 0%, #45ff2f 100%); Green Yellow to its complement
background: linear-gradient(135deg, #adff2f 0%, #812fff 100%); Colors similar to Green Yellow
How each close match differs from Green Yellow.
Use Green Yellow in code
.element {
color: #adff2f;
background-color: #adff2f;
border-color: greenyellow; /* greenyellow is a valid CSS color name */
} :root {
--color-green-yellow: #adff2f;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#adff2f] text-[#adff2f] border-[#adff2f]"></div>
/* Tailwind v4 theme color */
@theme {
--color-green-yellow: #adff2f;
} Green Yellow questions
What is the hex code for Green Yellow?
The hex code for Green Yellow is #ADFF2F. In RGB that is rgb(173, 255, 47), and in HSL it is hsl(84, 100%, 59%).
What is the complementary color of Green Yellow?
On the RGB (screen) color wheel, the complement of Green Yellow is #812FFF, which is close to Blue Violet. On the artist’s RYB wheel it is #FF2FE1, close to Magenta.
Should I use white or black text on Green Yellow?
Black text. It has a contrast ratio of 17.12:1 against Green Yellow, which is WCAG AAA. The other option scores 1.23:1.
Is Green Yellow accessible as a text color on white?
No. Green Yellow on white scores 1.23:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Green Yellow?
Mixing Green Yellow with black gives #8ACC26, #68991C, #456613, #233309 (20% to 80% black). Mixing it with white gives #BDFF59, #CEFF82, #DEFFAC, #EFFFD5 (20% to 80% white).