#AFE987#AFE987

#AFE987 is a very light, vivid yellow-green. Relative luminance 0.691; OKLCH L 87.2% C 0.141 H 133.6°. Best body text is #000000 at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#AFE987
RGBrgb(175, 233, 135)
HSLhsl(96, 69%, 72%)
HSVhsv(96, 42%, 91%)
CMYKcmyk(24.9%, 0%, 42.1%, 8.6%)
CIE-LABlab(86.57, -35.32, 41.74)
CIE-LCHlch(86.57, 54.68, 130.24°)
OKLaboklab(87.2% -0.097 0.102)
OKLCHoklch(87.2% 0.141 133.6)
XYZxyz(51.1902, 69.1397, 33.5652)
Luminance0.6914 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE987 #C187E9
analogous
#E0E987 #AFE987 #87E990
triadic
#AFE987 #87AFE9 #E987AF
tetradic
#AFE987 #87E0E9 #C187E9 #E99087
square
#AFE987 #87E0E9 #C187E9 #E99087
split-complementary
#AFE987 #9087E9 #E987E0
monochromatic
#6BD026 #8DE053 #AFE987 #D1F2BB #EEFAE5

Accessibility & contrast

On white

1.42
#AFE987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.83
#AFE987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE987
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE987#FFFFFF#000000##000000
##AFE9871.001.4214.8314.83
#FFFFFF1.421.0021.0021.00
#00000014.8321.001.001.00
##00000014.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DC7F
Deuteranopia (green-blind)
#E8D78D
Tritanopia (blue-blind)
#B0E2D1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #afe987;
/* rgb */ color: rgb(175, 233, 135);
/* oklch */ color: oklch(87.2% 0.141 133.6);
Tailwind
colors: {
  custom: {
    50: '#c9f0ab',
    500: '#afe987',
    950: '#000000',
  },
}
SCSS
$custom: #afe987;
$custom-light: #c9f0ab;
$custom-dark: #000000;
JSON
{
  "hex": "#afe987",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 135
  },
  "hsl": {
    "h": 95.51,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.87197,
    "c": 0.14077,
    "h": 133.6
  },
  "luminance": 0.69141
}

Semantic roles & 50–950 ramp

primary
#AFE987
secondary
#9452C3
accent
#15D184
background
#FEFFFD
surface
#FAFEF7
border
#D3D6D0
text
#131610
muted
#838581

Preview Lab

Preview with #AFE987

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

Preview Lab → · Contrast checker → · Palette generator →

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