#AFD478#AFD478

#AFD478 is a very light, vivid yellow-green. Relative luminance 0.576; OKLCH L 82.2% C 0.126 H 126.9°. Best body text is #000000 at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#AFD478
RGBrgb(175, 212, 120)
HSLhsl(84, 52%, 65%)
HSVhsv(84, 43%, 83%)
CMYKcmyk(17.5%, 0%, 43.4%, 16.9%)
CIE-LABlab(80.49, -27.34, 41.46)
CIE-LCHlch(80.49, 49.66, 123.40°)
OKLaboklab(82.23% -0.0756 0.1006)
OKLCHoklch(82.23% 0.126 126.9)
XYZxyz(44.6125, 57.5565, 26.5248)
Luminance0.5756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD478 #9D78D4
analogous
#D4CB78 #AFD478 #81D478
triadic
#AFD478 #78AFD4 #D478AF
tetradic
#AFD478 #78D4CB #9D78D4 #D47881
square
#AFD478 #78D4CB #9D78D4 #D47881
split-complementary
#AFD478 #7881D4 #CB78D4
monochromatic
#739F33 #93C54A #AFD478 #CBE3A6 #E6F2D5

Accessibility & contrast

On white

1.68
#AFD478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.51
#AFD478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD478
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD478#FFFFFF#000000##000000
##AFD4781.001.6812.5112.51
#FFFFFF1.681.0021.0021.00
#00000012.5121.001.001.00
##00000012.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC971
Deuteranopia (green-blind)
#D7C77D
Tritanopia (blue-blind)
#B4CCBE
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #afd478;
/* rgb */ color: rgb(175, 212, 120);
/* oklch */ color: oklch(82.2% 0.126 126.9);
Tailwind
colors: {
  custom: {
    50: '#c8e1a0',
    500: '#afd478',
    950: '#000000',
  },
}
SCSS
$custom: #afd478;
$custom-light: #c8e1a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afd478",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 120
  },
  "hsl": {
    "h": 84.13,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.8223,
    "c": 0.12585,
    "h": 126.9
  },
  "luminance": 0.57557
}

Semantic roles & 50–950 ramp

primary
#AFD478
secondary
#704DA4
accent
#26BF64
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD478

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

Preview Lab → · Contrast checker → · Palette generator →

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