CSS color names · Greens

Green Yellow color: hex #adff2f, RGB and HSL

Green Yellow is the CSS keyword greenyellow, hex #adff2f, rgb(173, 255, 47), hsl(84, 100%, 59%). It is a medium, fully saturated green in the greens family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
greenyellow
Hex
#adff2f
RGB
rgb(173, 255, 47)
HSL
hsl(84, 100%, 59%)
On white
1.23:1 — fails AA; use as a fill, not text
On black
17.12:1 — passes AA for body text
.example {
  color: greenyellow;          /* keyword */
  color: #adff2f;          /* hex */
  color: rgb(173, 255, 47); /* rgb */
  color: hsl(84, 100%, 59%); /* hsl */
}

What colors go with green yellow

Each match keeps green yellow's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside green yellow as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#812fff

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#2f45ff
#e92fff

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#2fadff
#ff2fad

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#ffe92f
#45ff2f

Tints and shades of green yellow

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as green yellow — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#bbff52
#c8ff74
#d6ff97
#e4ffba
#f1ffdc

Shades (darker)

#98fc00
#7ac900
#5b9700
#3d6500
#1e3200

A UI color palette built from green yellow

The eight semantic roles an interface actually uses, derived from green yellow as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#adff2f
secondary
#2f45ff
accent
#e92fff
background
#fdfdfc
surface
#f5f7f3
text
#1b2211
muted
#798f56
border
#e7ecdf
Dark mode
primary
#adff2f
secondary
#2f45ff
accent
#e92fff
background
#161b0e
surface
#212815
text
#f5f6f3
muted
#aab894
border
#3c4927

Using green yellow in an interface

Green means success and 'on' — reserve one green for that job before you use another as a brand color. Sea green, forest green and teal are calm enough to lead a palette; the neon greens are for dark-mode accents and little else. Whichever role green yellow takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Green Yellow?
Green Yellow is #adff2f. In CSS the keyword greenyellow, the hex #adff2f, rgb(173, 255, 47) and hsl(84, 100%, 59%) all paint the same color.
What colors go with Green Yellow?
Its complement is #812fff, the split-complementary pair is #2f45ff and #e92fff, the triadic partners are #2fadff and #ff2fad, and the analogous neighbors are #ffe92f and #45ff2f. In an interface, use Green Yellow for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Green Yellow on the color wheel?
The opposite (complementary) color is #812fff, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Green Yellow for text?
Green Yellow as text on white has a contrast ratio of 1.23:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 17.12:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More greens

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.