green yellow color code
The hex code for green yellow is #ADFF2F, which is rgb(173, 255, 47) in RGB and cmyk(32%, 0%, 82%, 0%) in CMYK. It's a medium, vivid green. It is a built-in CSS colour, so you can also write it as “greenyellow”.
Build a full palette from it: open in the palette generator.
Move the sliders to find a lighter, darker or softer green yellow; the codes update as you go.
Green Yellow colour codes
| HEX | #ADFF2F |
|---|---|
| RGB | rgb(173, 255, 47) |
| HSL | hsl(84, 100%, 59%) |
| HSV / HSB | hsv(84, 82%, 100%) |
| CMYK | cmyk(32%, 0%, 82%, 0%) |
| Decimal | 11403055 |
| CSS keyword | greenyellow |
About green yellow
Green Yellow sits at a hue of 84° on the colour wheel, with 100% saturation and 59% lightness. That makes it a colour that sits between warm and cool: greens and purples like this can be styled warm or cool depending on what you put next to them.
For text, black reads better on green yellow. Green Yellow as text on a white background has a contrast ratio of 1.22:1, which fails the WCAG AA rule for body text (4.5:1) and fails the 3:1 rule for large text. On black it is 17.12:1, which passes AA for body text.
Tints and shades of green yellow
Tints mix green yellow with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.
Colours that go with green yellow
Complementary — opposite on the colour wheel: maximum contrast
Analogous — neighbours 30° either side: calm and natural
Triadic — three hues 120° apart: lively but balanced
Split complementary — the two neighbours of the complement: contrast with less tension
Tetradic — four hues 90° apart: rich, use one as the main colour
Green Yellow text contrast
| Combination | Ratio | AA normal (4.5:1) | AA large (3:1) | AAA (7:1) |
|---|---|---|---|---|
| green yellow on white | 1.22:1 | fail | fail | fail |
| green yellow on black | 17.12:1 | pass | pass | pass |
Check green yellow against any other colour in the contrast checker.
How green yellow looks with colour blindness
Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.
Use green yellow in code
.green-yellow {
color: greenyellow;
background-color: #adff2f;
border-color: rgb(173, 255, 47);
}Frequently asked questions
What is the hex code for green yellow?
Green Yellow is #ADFF2F (lowercase #adff2f). It's the official value of the CSS keyword “greenyellow”.
What is green yellow in RGB, HSL and CMYK?
RGB: rgb(173, 255, 47). HSL: hsl(84, 100%, 59%). CMYK: cmyk(32%, 0%, 82%, 0%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.
What colours go with green yellow?
Its complementary colour is #812FFF (close to blue violet), which gives the strongest contrast. For a calmer look, use the analogous colours #FFE92F and #45FF2F, or the triadic pair #2FADFF and #FF2FAD. Tints and shades of green yellow itself always work together.
Is green yellow a warm or cool colour?
Green Yellow has a hue of 84°, which makes it neither clearly warm nor cool.
Should I use black or white text on green yellow?
Black. Black text on green yellow has a contrast ratio of 17.12:1 and white text has 1.22:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
How do I use green yellow in CSS?
Write color: greenyellow; or color: #adff2f; — both give the same colour. Named colours work in every browser.