#AFD97F#AFD97F

#AFD97F is a very light, vivid yellow-green. Relative luminance 0.603; OKLCH L 83.5% C 0.126 H 129.2°. Best body text is #000000 at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#AFD97F
RGBrgb(175, 217, 127)
HSLhsl(88, 54%, 67%)
HSVhsv(88, 41%, 85%)
CMYKcmyk(19.4%, 0%, 41.5%, 14.9%)
CIE-LABlab(81.99, -28.87, 39.87)
CIE-LCHlch(81.99, 49.22, 125.91°)
OKLaboklab(83.46% -0.0795 0.0974)
OKLCHoklch(83.46% 0.126 129.2)
XYZxyz(46.3222, 60.2713, 29.2676)
Luminance0.6027 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD97F #A97FD9
analogous
#D9D67F #AFD97F #82D97F
triadic
#AFD97F #7FAFD9 #D97FAF
tetradic
#AFD97F #7FD9D6 #A97FD9 #D97F82
square
#AFD97F #7FD9D6 #A97FD9 #D97F82
split-complementary
#AFD97F #7F82D9 #D67FD9
monochromatic
#73AB33 #92CB50 #AFD97F #CCE7AE #EAF5DD

Accessibility & contrast

On white

1.61
#AFD97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.05
#AFD97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD97F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD97F#FFFFFF#000000##000000
##AFD97F1.001.6113.0513.05
#FFFFFF1.611.0021.0021.00
#00000013.0521.001.001.00
##00000013.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CE78
Deuteranopia (green-blind)
#DBCB84
Tritanopia (blue-blind)
#B2D2C3
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd97f;
/* rgb */ color: rgb(175, 217, 127);
/* oklch */ color: oklch(83.5% 0.126 129.2);
Tailwind
colors: {
  custom: {
    50: '#c8e5a5',
    500: '#afd97f',
    950: '#000000',
  },
}
SCSS
$custom: #afd97f;
$custom-light: #c8e5a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afd97f",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 88,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.83463,
    "c": 0.12568,
    "h": 129.2
  },
  "luminance": 0.60272
}

Semantic roles & 50–950 ramp

primary
#AFD97F
secondary
#7B4EAE
accent
#24C26D
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD97F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFD97F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva