#AFD87E#AFD87E

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

Color values

HEX#AFD87E
RGBrgb(175, 216, 126)
HSLhsl(87, 54%, 67%)
HSVhsv(87, 42%, 85%)
CMYKcmyk(19%, 0%, 41.7%, 15.3%)
CIE-LABlab(81.69, -28.52, 39.99)
CIE-LCHlch(81.69, 49.12, 125.50°)
OKLaboklab(83.22% -0.0785 0.0976)
OKLCHoklch(83.22% 0.125 128.8)
XYZxyz(46.0004, 59.7314, 28.8404)
Luminance0.5973 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD87E #A77ED8
analogous
#D8D47E #AFD87E #82D87E
triadic
#AFD87E #7EAFD8 #D87EAF
tetradic
#AFD87E #7ED8D4 #A77ED8 #D87E82
square
#AFD87E #7ED8D4 #A77ED8 #D87E82
split-complementary
#AFD87E #7E82D8 #D47ED8
monochromatic
#73A933 #92CA4F #AFD87E #CCE6AD #E9F4DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD87E#FFFFFF#000000##000000
##AFD87E1.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)
#E0CD77
Deuteranopia (green-blind)
#DACA83
Tritanopia (blue-blind)
#B3D1C2
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd87e;
/* rgb */ color: rgb(175, 216, 126);
/* oklch */ color: oklch(83.2% 0.125 128.8);
Tailwind
colors: {
  custom: {
    50: '#c8e4a4',
    500: '#afd87e',
    950: '#000000',
  },
}
SCSS
$custom: #afd87e;
$custom-light: #c8e4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afd87e",
  "rgb": {
    "r": 175,
    "g": 216,
    "b": 126
  },
  "hsl": {
    "h": 87.333,
    "s": 53.571,
    "l": 67.059
  },
  "oklch": {
    "l": 0.83222,
    "c": 0.12528,
    "h": 128.8
  },
  "luminance": 0.59732
}

Semantic roles & 50–950 ramp

primary
#AFD87E
secondary
#794EAC
accent
#24C16C
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD87E

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

Preview Lab → · Contrast checker → · Palette generator →

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