#AFD978#AFD978

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

Color values

HEX#AFD978
RGBrgb(175, 217, 120)
HSLhsl(86, 56%, 66%)
HSVhsv(86, 45%, 85%)
CMYKcmyk(19.4%, 0%, 44.7%, 14.9%)
CIE-LABlab(81.89, -29.71, 43.21)
CIE-LCHlch(81.89, 52.44, 124.52°)
OKLaboklab(83.36% -0.0822 0.1046)
OKLCHoklch(83.36% 0.133 128.2)
XYZxyz(45.8818, 60.0951, 26.9479)
Luminance0.6010 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD978 #A278D9
analogous
#D9D278 #AFD978 #7ED978
triadic
#AFD978 #78AFD9 #D978AF
tetradic
#AFD978 #78D9D2 #A278D9 #D9787E
square
#AFD978 #78D9D2 #A278D9 #D9787E
split-complementary
#AFD978 #787ED9 #D278D9
monochromatic
#73A72F #93CC48 #AFD978 #CBE6A8 #E8F4D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD978#FFFFFF#000000##000000
##AFD9781.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)
#E2CD70
Deuteranopia (green-blind)
#DBCB7D
Tritanopia (blue-blind)
#B3D1C2
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd978;
/* rgb */ color: rgb(175, 217, 120);
/* oklch */ color: oklch(83.4% 0.133 128.2);
Tailwind
colors: {
  custom: {
    50: '#c8e5a0',
    500: '#afd978',
    950: '#000000',
  },
}
SCSS
$custom: #afd978;
$custom-light: #c8e5a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afd978",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 85.979,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.83355,
    "c": 0.13302,
    "h": 128.2
  },
  "luminance": 0.60096
}

Semantic roles & 50–950 ramp

primary
#AFD978
secondary
#744AAB
accent
#22C468
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150F
muted
#838480

Preview Lab

Preview with #AFD978

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

Preview Lab → · Contrast checker → · Palette generator →

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