#AFDF87#AFDF87

#AFDF87 is a very light, vivid yellow-green. Relative luminance 0.636; OKLCH L 84.9% C 0.126 H 131.9°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#AFDF87
RGBrgb(175, 223, 135)
HSLhsl(93, 58%, 70%)
HSVhsv(93, 39%, 87%)
CMYKcmyk(21.5%, 0%, 39.5%, 12.5%)
CIE-LABlab(83.78, -30.69, 38.17)
CIE-LCHlch(83.78, 48.97, 128.80°)
OKLaboklab(84.94% -0.0841 0.0938)
OKLCHoklch(84.94% 0.126 131.9)
XYZxyz(48.4392, 63.6376, 32.6482)
Luminance0.6364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF87 #B787DF
analogous
#DBDF87 #AFDF87 #87DF8B
triadic
#AFDF87 #87AFDF #DF87AF
tetradic
#AFDF87 #87DBDF #B787DF #DF8B87
square
#AFDF87 #87DBDF #B787DF #DF8B87
split-complementary
#AFDF87 #8B87DF #DF87DB
monochromatic
#70BA32 #8FD257 #AFDF87 #CFECB7 #EFF9E7

Accessibility & contrast

On white

1.53
#AFDF87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.73
#AFDF87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF87
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF87#FFFFFF#000000##000000
##AFDF871.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D381
Deuteranopia (green-blind)
#DFD08C
Tritanopia (blue-blind)
#B1D8C9
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afdf87;
/* rgb */ color: rgb(175, 223, 135);
/* oklch */ color: oklch(84.9% 0.126 131.9);
Tailwind
colors: {
  custom: {
    50: '#c8e9ab',
    500: '#afdf87',
    950: '#000000',
  },
}
SCSS
$custom: #afdf87;
$custom-light: #c8e9ab;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf87",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 135
  },
  "hsl": {
    "h": 92.727,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.84942,
    "c": 0.12602,
    "h": 131.9
  },
  "luminance": 0.63639
}

Semantic roles & 50–950 ramp

primary
#AFDF87
secondary
#8A54B7
accent
#20C57A
background
#FDFEFD
surface
#F9FCF7
border
#D2D5D0
text
#131610
muted
#828481

Preview Lab

Preview with #AFDF87

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

Preview Lab → · Contrast checker → · Palette generator →

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