#AFD787#AFD787

#AFD787 is a very light, moderate yellow-green. Relative luminance 0.595; OKLCH L 83.1% C 0.114 H 130.2°. Best body text is #000000 at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#AFD787
RGBrgb(175, 215, 135)
HSLhsl(90, 50%, 69%)
HSVhsv(90, 37%, 84%)
CMYKcmyk(18.6%, 0%, 37.2%, 15.7%)
CIE-LABlab(81.55, -26.89, 35.28)
CIE-LCHlch(81.55, 44.36, 127.32°)
OKLaboklab(83.15% -0.0736 0.0871)
OKLCHoklch(83.15% 0.114 130.2)
XYZxyz(46.3521, 59.4634, 31.9525)
Luminance0.5946 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD787 #AF87D7
analogous
#D7D787 #AFD787 #87D787
triadic
#AFD787 #87AFD7 #D787AF
tetradic
#AFD787 #87D7D7 #AF87D7 #D78787
square
#AFD787 #87D7D7 #AF87D7 #D78787
split-complementary
#AFD787 #8787D7 #D787D7
monochromatic
#72AB39 #90C859 #AFD787 #CEE6B5 #ECF6E3

Accessibility & contrast

On white

1.63
#AFD787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.89
#AFD787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD787
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD787#FFFFFF#000000##000000
##AFD7871.001.6312.8912.89
#FFFFFF1.631.0021.0021.00
#00000012.8921.001.001.00
##00000012.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DECD81
Deuteranopia (green-blind)
#D8CA8B
Tritanopia (blue-blind)
#B2D1C3
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd787;
/* rgb */ color: rgb(175, 215, 135);
/* oklch */ color: oklch(83.1% 0.114 130.2);
Tailwind
colors: {
  custom: {
    50: '#c8e3ab',
    500: '#afd787',
    950: '#000000',
  },
}
SCSS
$custom: #afd787;
$custom-light: #c8e3ab;
$custom-dark: #000000;
JSON
{
  "hex": "#afd787",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 135
  },
  "hsl": {
    "h": 90,
    "s": 50,
    "l": 68.627
  },
  "oklch": {
    "l": 0.83148,
    "c": 0.11403,
    "h": 130.2
  },
  "luminance": 0.59464
}

Semantic roles & 50–950 ramp

primary
#AFD787
secondary
#8155AD
accent
#28BD73
background
#FDFEFD
surface
#F9FCF7
border
#D2D5D0
text
#131510
muted
#828481

Preview Lab

Preview with #AFD787

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

Preview Lab → · Contrast checker → · Palette generator →

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