#AFD987#AFD987

#AFD987 is a very light, moderate yellow-green. Relative luminance 0.605; OKLCH L 83.6% C 0.117 H 130.6°. Best body text is #000000 at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#AFD987
RGBrgb(175, 217, 135)
HSLhsl(91, 52%, 69%)
HSVhsv(91, 38%, 85%)
CMYKcmyk(19.4%, 0%, 37.8%, 14.9%)
CIE-LABlab(82.10, -27.85, 36.00)
CIE-LCHlch(82.10, 45.51, 127.73°)
OKLaboklab(83.6% -0.0762 0.0888)
OKLCHoklch(83.6% 0.117 130.6)
XYZxyz(46.8645, 60.4881, 32.1233)
Luminance0.6049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD987 #B187D9
analogous
#D8D987 #AFD987 #87D988
triadic
#AFD987 #87AFD9 #D987AF
tetradic
#AFD987 #87D8D9 #B187D9 #D98887
square
#AFD987 #87D8D9 #B187D9 #D98887
split-complementary
#AFD987 #8887D9 #D987D8
monochromatic
#71AE37 #90CA59 #AFD987 #CEE8B5 #EDF6E4

Accessibility & contrast

On white

1.60
#AFD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.10
#AFD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD987
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD987#FFFFFF#000000##000000
##AFD9871.001.6013.1013.10
#FFFFFF1.601.0021.0021.00
#00000013.1021.001.001.00
##00000013.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CE81
Deuteranopia (green-blind)
#DACB8B
Tritanopia (blue-blind)
#B1D3C5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd987;
/* rgb */ color: rgb(175, 217, 135);
/* oklch */ color: oklch(83.6% 0.117 130.6);
Tailwind
colors: {
  custom: {
    50: '#c8e5ab',
    500: '#afd987',
    950: '#000000',
  },
}
SCSS
$custom: #afd987;
$custom-light: #c8e5ab;
$custom-dark: #000000;
JSON
{
  "hex": "#afd987",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 90.732,
    "s": 51.899,
    "l": 69.02
  },
  "oklch": {
    "l": 0.83596,
    "c": 0.11704,
    "h": 130.6
  },
  "luminance": 0.60489
}

Semantic roles & 50–950 ramp

primary
#AFD987
secondary
#8355AF
accent
#26BF75
background
#FDFEFD
surface
#F9FCF7
border
#D2D5D0
text
#131510
muted
#828481

Preview Lab

Preview with #AFD987

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

Preview Lab → · Contrast checker → · Palette generator →

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