#AFD778#AFD778

#AFD778 is a very light, vivid yellow-green. Relative luminance 0.591; OKLCH L 82.9% C 0.130 H 127.7°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#AFD778
RGBrgb(175, 215, 120)
HSLhsl(85, 54%, 66%)
HSVhsv(85, 44%, 84%)
CMYKcmyk(18.6%, 0%, 44.2%, 15.7%)
CIE-LABlab(81.33, -28.77, 42.51)
CIE-LCHlch(81.33, 51.33, 124.09°)
OKLaboklab(82.9% -0.0796 0.103)
OKLCHoklch(82.9% 0.13 127.7)
XYZxyz(45.3694, 59.0703, 26.7771)
Luminance0.5907 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD778 #A078D7
analogous
#D7CF78 #AFD778 #7FD778
triadic
#AFD778 #78AFD7 #D778AF
tetradic
#AFD778 #78D7CF #A078D7 #D7787F
square
#AFD778 #78D7CF #A078D7 #D7787F
split-complementary
#AFD778 #787FD7 #CF78D7
monochromatic
#73A431 #93C949 #AFD778 #CBE5A7 #E7F3D6

Accessibility & contrast

On white

1.64
#AFD778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#AFD778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD778
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD778#FFFFFF#000000##000000
##AFD7781.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CC70
Deuteranopia (green-blind)
#DAC97D
Tritanopia (blue-blind)
#B3CFC0
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd778;
/* rgb */ color: rgb(175, 215, 120);
/* oklch */ color: oklch(82.9% 0.130 127.7);
Tailwind
colors: {
  custom: {
    50: '#c8e3a0',
    500: '#afd778',
    950: '#000000',
  },
}
SCSS
$custom: #afd778;
$custom-light: #c8e3a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afd778",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 120
  },
  "hsl": {
    "h": 85.263,
    "s": 54.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.82904,
    "c": 0.13016,
    "h": 127.7
  },
  "luminance": 0.59071
}

Semantic roles & 50–950 ramp

primary
#AFD778
secondary
#724BA8
accent
#24C266
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150F
muted
#838480

Preview Lab

Preview with #AFD778

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

Preview Lab → · Contrast checker → · Palette generator →

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