#AFC87B#AFC87B

#AFC87B is a light, moderate yellow-green. Relative luminance 0.519; OKLCH L 79.6% C 0.105 H 123.4°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#AFC87B
RGBrgb(175, 200, 123)
HSLhsl(79, 41%, 63%)
HSVhsv(79, 39%, 78%)
CMYKcmyk(12.5%, 0%, 38.5%, 21.6%)
CIE-LABlab(77.19, -21.13, 35.75)
CIE-LCHlch(77.19, 41.53, 120.59°)
OKLaboklab(79.6% -0.058 0.0878)
OKLCHoklch(79.6% 0.105 123.4)
XYZxyz(41.9084, 51.8524, 26.5357)
Luminance0.5185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC87B #947BC8
analogous
#C8BA7B #AFC87B #88C87B
triadic
#AFC87B #7BAFC8 #C87BAF
tetradic
#AFC87B #7BC8BA #947BC8 #C87B88
square
#AFC87B #7BC8BA #947BC8 #C87B88
split-complementary
#AFC87B #7B88C8 #BA7BC8
monochromatic
#738E3B #95B650 #AFC87B #C9DAA6 #E3ECD1

Accessibility & contrast

On white

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

On black

11.37
#AFC87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC87B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC87B#FFFFFF#000000##000000
##AFC87B1.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BF75
Deuteranopia (green-blind)
#CDBE7F
Tritanopia (blue-blind)
#B4C1B5
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afc87b;
/* rgb */ color: rgb(175, 200, 123);
/* oklch */ color: oklch(79.6% 0.105 123.4);
Tailwind
colors: {
  custom: {
    50: '#c8d8a2',
    500: '#afc87b',
    950: '#000000',
  },
}
SCSS
$custom: #afc87b;
$custom-light: #c8d8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afc87b",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 123
  },
  "hsl": {
    "h": 79.481,
    "s": 41.176,
    "l": 63.333
  },
  "oklch": {
    "l": 0.79597,
    "c": 0.1052,
    "h": 123.4
  },
  "luminance": 0.51853
}

Semantic roles & 50–950 ramp

primary
#AFC87B
secondary
#685295
accent
#31B45C
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC87B

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

Preview Lab → · Contrast checker → · Palette generator →

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