#AFD87B#AFD87B

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

Color values

HEX#AFD87B
RGBrgb(175, 216, 123)
HSLhsl(86, 54%, 66%)
HSVhsv(86, 43%, 85%)
CMYKcmyk(19%, 0%, 43.1%, 15.3%)
CIE-LABlab(81.65, -28.89, 41.43)
CIE-LCHlch(81.65, 50.50, 124.89°)
OKLaboklab(83.18% -0.0797 0.1007)
OKLCHoklch(83.18% 0.128 128.4)
XYZxyz(45.8098, 59.6551, 27.8362)
Luminance0.5966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD87B #A47BD8
analogous
#D8D37B #AFD87B #81D87B
triadic
#AFD87B #7BAFD8 #D87BAF
tetradic
#AFD87B #7BD8D3 #A47BD8 #D87B81
square
#AFD87B #7BD8D3 #A47BD8 #D87B81
split-complementary
#AFD87B #7B81D8 #D37BD8
monochromatic
#73A731 #92CA4C #AFD87B #CCE6AA #E8F4D9

Accessibility & contrast

On white

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

On black

12.93
#AFD87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD87B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD87B#FFFFFF#000000##000000
##AFD87B1.001.6212.9312.93
#FFFFFF1.621.0021.0021.00
#00000012.9321.001.001.00
##00000012.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CD74
Deuteranopia (green-blind)
#DACA80
Tritanopia (blue-blind)
#B3D1C2
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd87b;
/* rgb */ color: rgb(175, 216, 123);
/* oklch */ color: oklch(83.2% 0.128 128.4);
Tailwind
colors: {
  custom: {
    50: '#c8e4a2',
    500: '#afd87b',
    950: '#000000',
  },
}
SCSS
$custom: #afd87b;
$custom-light: #c8e4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afd87b",
  "rgb": {
    "r": 175,
    "g": 216,
    "b": 123
  },
  "hsl": {
    "h": 86.452,
    "s": 54.386,
    "l": 66.471
  },
  "oklch": {
    "l": 0.83175,
    "c": 0.12846,
    "h": 128.4
  },
  "luminance": 0.59656
}

Semantic roles & 50–950 ramp

primary
#AFD87B
secondary
#764DAB
accent
#24C269
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD87B

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

Preview Lab → · Contrast checker → · Palette generator →

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