#AFC778#AFC778

#AFC778 is a light, moderate yellow-green. Relative luminance 0.513; OKLCH L 79.3% C 0.107 H 122.6°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#AFC778
RGBrgb(175, 199, 120)
HSLhsl(78, 41%, 63%)
HSVhsv(78, 40%, 78%)
CMYKcmyk(12.1%, 0%, 39.7%, 22%)
CIE-LABlab(76.87, -21.01, 36.87)
CIE-LCHlch(76.87, 42.43, 119.67°)
OKLaboklab(79.32% -0.0578 0.0902)
OKLCHoklch(79.32% 0.107 122.6)
XYZxyz(41.4927, 51.3168, 25.4849)
Luminance0.5132 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC778 #9078C7
analogous
#C7B878 #AFC778 #87C778
triadic
#AFC778 #78AFC7 #C778AF
tetradic
#AFC778 #78C7B8 #9078C7 #C77887
square
#AFC778 #78C7B8 #9078C7 #C77887
split-complementary
#AFC778 #7887C7 #B878C7
monochromatic
#728B3A #95B54D #AFC778 #C9D9A3 #E2EBCF

Accessibility & contrast

On white

1.86
#AFC778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#AFC778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC778
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC778#FFFFFF#000000##000000
##AFC7781.001.8611.2611.26
#FFFFFF1.861.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE72
Deuteranopia (green-blind)
#CCBE7C
Tritanopia (blue-blind)
#B5C0B4
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc778;
/* rgb */ color: rgb(175, 199, 120);
/* oklch */ color: oklch(79.3% 0.107 122.6);
Tailwind
colors: {
  custom: {
    50: '#c8d8a0',
    500: '#afc778',
    950: '#000000',
  },
}
SCSS
$custom: #afc778;
$custom-light: #c8d8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afc778",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 120
  },
  "hsl": {
    "h": 78.228,
    "s": 41.361,
    "l": 62.549
  },
  "oklch": {
    "l": 0.79324,
    "c": 0.10714,
    "h": 122.6
  },
  "luminance": 0.51317
}

Semantic roles & 50–950 ramp

primary
#AFC778
secondary
#655192
accent
#31B459
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC778

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

Preview Lab → · Contrast checker → · Palette generator →

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