#AFC87F#AFC87F

#AFC87F is a light, moderate yellow-green. Relative luminance 0.520; OKLCH L 79.7% C 0.101 H 124.0°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#AFC87F
RGBrgb(175, 200, 127)
HSLhsl(81, 40%, 64%)
HSVhsv(81, 37%, 78%)
CMYKcmyk(12.5%, 0%, 36.5%, 21.6%)
CIE-LABlab(77.25, -20.62, 33.78)
CIE-LCHlch(77.25, 39.58, 121.41°)
OKLaboklab(79.67% -0.0563 0.0834)
OKLCHoklch(79.67% 0.101 124)
XYZxyz(42.1639, 51.9547, 27.8815)
Luminance0.5195 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC87F #987FC8
analogous
#C8BD7F #AFC87F #8BC87F
triadic
#AFC87F #7FAFC8 #C87FAF
tetradic
#AFC87F #7FC8BD #987FC8 #C87F8B
square
#AFC87F #7FC8BD #987FC8 #C87F8B
split-complementary
#AFC87F #7F8BC8 #BD7FC8
monochromatic
#738F3D #94B654 #AFC87F #CADAAA #E5EDD5

Accessibility & contrast

On white

1.84
#AFC87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#AFC87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC87F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC87F#FFFFFF#000000##000000
##AFC87F1.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C07A
Deuteranopia (green-blind)
#CCBF83
Tritanopia (blue-blind)
#B4C1B6
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afc87f;
/* rgb */ color: rgb(175, 200, 127);
/* oklch */ color: oklch(79.7% 0.101 124.0);
Tailwind
colors: {
  custom: {
    50: '#c8d8a5',
    500: '#afc87f',
    950: '#000000',
  },
}
SCSS
$custom: #afc87f;
$custom-light: #c8d8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afc87f",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 127
  },
  "hsl": {
    "h": 80.548,
    "s": 39.891,
    "l": 64.118
  },
  "oklch": {
    "l": 0.79666,
    "c": 0.10062,
    "h": 124
  },
  "luminance": 0.51955
}

Semantic roles & 50–950 ramp

primary
#AFC87F
secondary
#6B5596
accent
#33B35F
background
#FDFEFC
surface
#F9FBF6
border
#D2D4D0
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC87F

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

Preview Lab → · Contrast checker → · Palette generator →

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