#AFC879#AFC879

#AFC879 is a light, moderate yellow-green. Relative luminance 0.518; OKLCH L 79.6% C 0.107 H 123.2°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#AFC879
RGBrgb(175, 200, 121)
HSLhsl(79, 42%, 63%)
HSVhsv(79, 40%, 78%)
CMYKcmyk(12.5%, 0%, 39.5%, 21.6%)
CIE-LABlab(77.16, -21.38, 36.73)
CIE-LCHlch(77.16, 42.50, 120.20°)
OKLaboklab(79.56% -0.0588 0.09)
OKLCHoklch(79.56% 0.107 123.2)
XYZxyz(41.7845, 51.8029, 25.8831)
Luminance0.5180 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC879 #9279C8
analogous
#C8B979 #AFC879 #87C879
triadic
#AFC879 #79AFC8 #C879AF
tetradic
#AFC879 #79C8B9 #9279C8 #C87987
square
#AFC879 #79C8B9 #9279C8 #C87987
split-complementary
#AFC879 #7987C8 #B979C8
monochromatic
#738D3A #95B64E #AFC879 #C9DAA4 #E3ECD0

Accessibility & contrast

On white

1.85
#AFC879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#AFC879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC879
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC879#FFFFFF#000000##000000
##AFC8791.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BF73
Deuteranopia (green-blind)
#CDBE7D
Tritanopia (blue-blind)
#B5C1B5
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afc879;
/* rgb */ color: rgb(175, 200, 121);
/* oklch */ color: oklch(79.6% 0.107 123.2);
Tailwind
colors: {
  custom: {
    50: '#c8d8a1',
    500: '#afc879',
    950: '#000000',
  },
}
SCSS
$custom: #afc879;
$custom-light: #c8d8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afc879",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 121
  },
  "hsl": {
    "h": 78.987,
    "s": 41.799,
    "l": 62.941
  },
  "oklch": {
    "l": 0.79563,
    "c": 0.10745,
    "h": 123.2
  },
  "luminance": 0.51803
}

Semantic roles & 50–950 ramp

primary
#AFC879
secondary
#665194
accent
#31B55A
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC879

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

Preview Lab → · Contrast checker → · Palette generator →

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