CSS named color

Green Yellow #ADFF2F

The CSS keyword greenyellow is #ADFF2F. It is a pale vivid green in the green family. In OKLCH it sits at lightness 0.913, chroma 0.233 and hue 130.0°.

Relative luminance
0.8061
OKLCH L · C · h
0.913 · 0.233 · 130.0
Best text
Black 17.12:1
Hue family
Green

#ADFF2F color codes

HEX
#ADFF2F
RGB
rgb(173, 255, 47)
HSL
hsl(84, 100%, 59%)
OKLCH
oklch(0.913 0.233 130.0)
OKLab
oklab(0.913 -0.150 0.179)
CIELAB (D65)
L* 91.96, a* -52.48, b* 81.86
XYZ (D65)
X 53.51, Y 80.61, Z 15.43
CMYK (naive)
cmyk(32%, 0%, 82%, 0%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #ADFF2F accessible?

Black text on it reaches 17.12:1, passing AAA. White text fails at 1.22:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    17.12:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +92
  • White text on it

    1.22:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −12

    Text is here, unreadable at 1.22:1

  • As text on black

    17.12:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −93
  • As text on white

    1.22:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +10

    Text is here, unreadable at 1.22:1

Nearest versions that pass 4.5:1

  • For text on white

    #548200 4.59:1

    Darkening its OKLCH lightness from 0.91 to 0.55 reaches 4.59:1 on white, keeping the hue.

  • For text on black

    #ADFF2F 17.12:1

    It already reaches 17.12:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #ADFF2F live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #ADFF2F

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #ADFF2F sits at step 100.

  1. 50#E6FFCF
    White
    1.07
    Black
    19.56
  2. 100This color#ADFF2F
    White
    1.22
    Black
    17.12
  3. 200#A9F14A
    White
    1.36
    Black
    15.36
  4. 300#8ED700
    White
    1.76
    Black
    11.87
  5. 400#78B700
    White
    2.44
    Black
    8.57
  6. 500#639900
    White
    3.44
    Black
    6.08
  7. 600#517E00
    White
    4.84
    Black
    4.33
  8. 700#406500
    White
    6.81
    Black
    3.07
  9. 800#2D4900
    White
    10.17
    Black
    2.06
  10. 900#1C3000
    White
    14.26
    Black
    1.47
  11. 950#0D1B00
    White
    17.88
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #ADFF2F can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.234; #ADFF2F uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.259 there: 11% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.233
sRGB edge
0.234
Display P3 edge
0.259
Rec. 2020 edge
0.298
Dominant wavelength
560 nm
Excitation purity
72%
Chromaticity
x 0.3578, y 0.5390
  • This color#ADFF2F
  • Most vivid in sRGB#ADFF2F
  • Most vivid in Display P3oklch(0.913 0.259 130.0)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #adff2f;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.7337 1 0.2584); }
}

Mixing

Mixing #ADFF2F

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#D6FF97
  • OKLab50%#D7FFAD
  • OKLCH50%#DAFFB7

Black #000000

  • sRGB50%#578018
  • OKLab50%#41630C
  • OKLCH50%#41630C

Its complement #EED9FF

  • sRGB50%#CEEC97
  • OKLab50%#CFEFB0
  • OKLCH50%#B5EDFF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #adff2f, white);
color: color-mix(in oklch, #adff2f 50%, white);

In use

#ADFF2F in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:117.12:1 Passes
  • Link and body-size textText, 4.5:11.22:1 Fails
  • Large headingLarge text, 3:11.22:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.22:1 Fails

For text on this page, the nearest shade that passes is #548200 4.59:1

Dark page

  • Button labelText, 4.5:117.12:1 Passes
  • Link and body-size textText, 4.5:115.27:1 Passes
  • Large headingLarge text, 3:115.27:1 Passes
  • Icons, borders and focus ringsNon-text, 3:115.27:1 Passes

Color vision

How #ADFF2F looks with color blindness

Achromatopsia changes it most, ΔE2000 30.5; protanopia changes it least, 18.0.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #FFEC00 ΔE2000 18.0

    Distinct

    Reads as pale vivid yellow

  • Deuteranopia

    No working green (medium-wavelength) cones

    #FFE648 ΔE2000 19.1

    Distinct

    Reads as pale soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #B2F4DA ΔE2000 25.1

    Distinct

    Reads as pale muted green

  • Achromatopsia

    No cone color vision; lightness only

    #E8E8E8 ΔE2000 30.5

    Distinct

    Reads as off-white

Pairing check

Checked against its complement, #EED9FF. Their lightness contrast is only 1.06:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#ADFF2F · #EED9FF58.6Stays distinct
Protanopia#FFEC00 · #D4E0FF49.3Stays distinct
Deuteranopia#FFE648 · #D8E1FE42.6Stays distinct
Tritanopia#B2F4DA · #ECDDE633.7Stays distinct
Achromatopsia#E8E8E8 · #E1E1E11.5Easily confused

Harmony

Color harmonies for #ADFF2F

Its complement is #EED9FF, a pale muted violet.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#ADFF2F
  • Complement#EED9FF

Complementary

Open in Harmony Studio
  • −30°#FFE429
  • Base#ADFF2F
  • +30°#85FFC2
  • Base#ADFF2F
  • +120°#CDE5FF
  • +240°#FFD6DB
  • Base#ADFF2F
  • +150°#DCE0FF
  • +210°#FFD3EF

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-greenyellow: #adff2f;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        greenyellow: '#adff2f',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-greenyellow: oklch(0.913 0.233 130.0);
}

Design token (W3C DTCG)

{
  "color": {
    "greenyellow": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.6784, 1, 0.1843],
        "hex": "#adff2f"
      },
      "$description": "CSS named color greenyellow"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let greenyellow = Color(.sRGB, red: 0.678, green: 1.000, blue: 0.184, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Greenyellow = Color(0xFFADFF2F)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #ADFF2F in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.