#AFD87F#AFD87F

#AFD87F is a very light, vivid yellow-green. Relative luminance 0.598; OKLCH L 83.2% C 0.124 H 129.0°. Best body text is #000000 at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#AFD87F
RGBrgb(175, 216, 127)
HSLhsl(88, 53%, 67%)
HSVhsv(88, 41%, 85%)
CMYKcmyk(19%, 0%, 41.2%, 15.3%)
CIE-LABlab(81.71, -28.40, 39.51)
CIE-LCHlch(81.71, 48.66, 125.71°)
OKLaboklab(83.24% -0.0781 0.0966)
OKLCHoklch(83.24% 0.124 129)
XYZxyz(46.0653, 59.7573, 29.1819)
Luminance0.5976 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD87F #A87FD8
analogous
#D8D47F #AFD87F #83D87F
triadic
#AFD87F #7FAFD8 #D87FAF
tetradic
#AFD87F #7FD8D4 #A87FD8 #D87F83
square
#AFD87F #7FD8D4 #A87FD8 #D87F83
split-complementary
#AFD87F #7F83D8 #D47FD8
monochromatic
#73A934 #92CA50 #AFD87F #CCE6AE #EAF5DD

Accessibility & contrast

On white

1.62
#AFD87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.95
#AFD87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD87F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD87F#FFFFFF#000000##000000
##AFD87F1.001.6212.9512.95
#FFFFFF1.621.0021.0021.00
#00000012.9521.001.001.00
##00000012.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CD78
Deuteranopia (green-blind)
#DACA84
Tritanopia (blue-blind)
#B2D1C2
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd87f;
/* rgb */ color: rgb(175, 216, 127);
/* oklch */ color: oklch(83.2% 0.124 129.0);
Tailwind
colors: {
  custom: {
    50: '#c8e4a5',
    500: '#afd87f',
    950: '#000000',
  },
}
SCSS
$custom: #afd87f;
$custom-light: #c8e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afd87f",
  "rgb": {
    "r": 175,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 87.64,
    "s": 53.293,
    "l": 67.255
  },
  "oklch": {
    "l": 0.83238,
    "c": 0.12421,
    "h": 129
  },
  "luminance": 0.59758
}

Semantic roles & 50–950 ramp

primary
#AFD87F
secondary
#7A4FAC
accent
#25C16D
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD87F

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

Preview Lab → · Contrast checker → · Palette generator →

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