#AFD979#AFD979

#AFD979 is a very light, vivid yellow-green. Relative luminance 0.601; OKLCH L 83.4% C 0.132 H 128.3°. Best body text is #000000 at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#AFD979
RGBrgb(175, 217, 121)
HSLhsl(86, 56%, 66%)
HSVhsv(86, 44%, 85%)
CMYKcmyk(19.4%, 0%, 44.2%, 14.9%)
CIE-LABlab(81.90, -29.60, 42.73)
CIE-LCHlch(81.90, 51.98, 124.71°)
OKLaboklab(83.37% -0.0818 0.1036)
OKLCHoklch(83.37% 0.132 128.3)
XYZxyz(45.9428, 60.1195, 27.2692)
Luminance0.6012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD979 #A379D9
analogous
#D9D379 #AFD979 #7FD979
triadic
#AFD979 #79AFD9 #D979AF
tetradic
#AFD979 #79D9D3 #A379D9 #D9797F
square
#AFD979 #79D9D3 #A379D9 #D9797F
split-complementary
#AFD979 #797FD9 #D379D9
monochromatic
#73A830 #93CB49 #AFD979 #CBE7A9 #E8F4D8

Accessibility & contrast

On white

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

On black

13.02
#AFD979 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD979
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD979#FFFFFF#000000##000000
##AFD9791.001.6113.0213.02
#FFFFFF1.611.0021.0021.00
#00000013.0221.001.001.00
##00000013.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CD71
Deuteranopia (green-blind)
#DBCB7E
Tritanopia (blue-blind)
#B3D1C2
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd979;
/* rgb */ color: rgb(175, 217, 121);
/* oklch */ color: oklch(83.4% 0.132 128.3);
Tailwind
colors: {
  custom: {
    50: '#c8e5a1',
    500: '#afd979',
    950: '#000000',
  },
}
SCSS
$custom: #afd979;
$custom-light: #c8e5a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afd979",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 121
  },
  "hsl": {
    "h": 86.25,
    "s": 55.814,
    "l": 66.275
  },
  "oklch": {
    "l": 0.8337,
    "c": 0.132,
    "h": 128.3
  },
  "luminance": 0.6012
}

Semantic roles & 50–950 ramp

primary
#AFD979
secondary
#754BAB
accent
#22C369
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150F
muted
#838480

Preview Lab

Preview with #AFD979

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

Preview Lab → · Contrast checker → · Palette generator →

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