Skip to content

CSS named color

GreenYellow #ADFF2F

GreenYellow (CSS keyword greenyellow) has the hex code #ADFF2F and the RGB value rgb(173, 255, 47): a very light, vivid yellow-green.

GreenYellow#ADFF2F

A very bright yellow-green, more yellow than chartreuse. Not to be confused with yellowgreen, which is darker and less saturated.

Color codes for GreenYellow

Color codes for GreenYellow
CSS keywordgreenyellow
HEX#ADFF2F
RGBrgb(173, 255, 47)
HSLhsl(84, 100%, 59%)
HWBhwb(84 18% 0%)
OKLCHoklch(91.3% 0.233 130)
CMYK (naive, no ICC profile)cmyk(32%, 0%, 82%, 0%)
Decimal11,403,055
Hue familyGreens

Contrast and accessibility

On greenyellow, black text has a contrast ratio of 17.12:1 and passes AAA at any text size; white text reaches 1.22:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on greenyellow17.12:1PassPassPassPass92.7
White text on greenyellow1.22:1FailFailFailFail−12.7
Greenyellow text on white1.22:1FailFailFailFail10.9
Greenyellow text on black17.12:1PassPassPassPass−93.2

Tints and shades

Each step mixes greenyellow with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, greenyellow, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #b1ff39
  2. 15%
    #b9ff4e
  3. 25%
    #c2ff63
  4. 35%
    #caff78
  5. 45%
    #d2ff8d
  6. 55%
    #daffa1
  7. 65%
    #e2ffb6
  8. 75%
    #ebffcb
  9. 85%
    #f3ffe0
  10. 95%
    #fbfff5

Shades (mixed with black)

  1. 5%
    #a4f22d
  2. 15%
    #93d928
  3. 25%
    #82bf23
  4. 35%
    #70a61f
  5. 45%
    #5f8c1a
  6. 55%
    #4e7315
  7. 65%
    #3d5910
  8. 75%
    #2b400c
  9. 85%
    #1a2607
  10. 95%
    #090d02

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, greenyellow's complementary color is #F4D3FF (close to lavender), its analogous colors are #FFE300 and #56FFB8, and its triadic partners are #C2E6FF and #FFD0D8. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f4d3ff
Analogous−30°, +30°#ffe300#56ffb8
Triadic+120°, +240°#c2e6ff#ffd0d8
Split-complementary+150°, +210°#d9deff#ffcbf5

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

GreenYellow sits on the boundary: its hue of 84° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
chartreuse#7fff004.7
lawngreen#7cfc005.1
palegreen#98fb988.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
lime-300#bbf4514.3
lime-400#9ae6007.2
lime-200#d8f99911.1

Code snippets

CSS
.element {
  color: greenyellow;
  background-color: #adff2f;
  border-color: rgb(173 255 47);
  outline-color: oklch(91.3% 0.233 130);
}
Tailwind CSS
<div class="bg-[#adff2f] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-greenyellow: #adff2f;
}
/* then use bg-greenyellow, text-greenyellow, border-greenyellow */
SwiftUI
import SwiftUI

extension Color {
  static let greenyellow = Color(red: 0.678, green: 1.000, blue: 0.184)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Greenyellow = Color(0xFFADFF2F)
Flutter
import 'package:flutter/material.dart';

const greenyellow = Color(0xFFADFF2F);
Android XML
<!-- res/values/colors.xml -->
<color name="greenyellow">#ADFF2F</color>

Frequently asked questions

What is the hex code for greenyellow?
The hex code for greenyellow is #ADFF2F. The same color is rgb(173, 255, 47), hsl(84, 100%, 59%) and oklch(91.3% 0.233 130), and in CSS you can also write the keyword greenyellow directly.
Is greenyellow a warm or cool color?
GreenYellow sits on the boundary: its hue of 84° on the HSL wheel is a yellow-green, which reads warm next to blues and cool next to reds and oranges.
What colors go with greenyellow?
Rotating the hue in OKLCH while keeping lightness and chroma, greenyellow's complementary color is #F4D3FF (close to lavender), its analogous colors are #FFE300 and #56FFB8, and its triadic partners are #C2E6FF and #FFD0D8. For text on top, black gives the higher contrast.
Can you use white text on greenyellow?
White text on greenyellow has a contrast ratio of 1.22:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.12:1 and passes both AA and AAA. In APCA terms that is Lc −12.7 for white and Lc 92.7 for black.
What is the RGB value of greenyellow?
GreenYellow is rgb(173, 255, 47): red 173, green 255 and blue 47 on the 0 to 255 scale, or 67.8%, 100.0% and 18.4%. As a decimal integer it is 11403055.

Last reviewed by Arielton Oberek.