#AFE787#AFE787

#AFE787 is a very light, vivid yellow-green. Relative luminance 0.680; OKLCH L 86.7% C 0.138 H 133.3°. Best body text is #000000 at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#AFE787
RGBrgb(175, 231, 135)
HSLhsl(95, 67%, 72%)
HSVhsv(95, 42%, 91%)
CMYKcmyk(24.2%, 0%, 41.6%, 9.4%)
CIE-LABlab(86.01, -34.40, 41.03)
CIE-LCHlch(86.01, 53.55, 129.98°)
OKLaboklab(86.75% -0.0945 0.1004)
OKLCHoklch(86.75% 0.138 133.3)
XYZxyz(50.6273, 68.0138, 33.3776)
Luminance0.6802 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE787 #BF87E7
analogous
#DFE787 #AFE787 #87E78F
triadic
#AFE787 #87AFE7 #E787AF
tetradic
#AFE787 #87DFE7 #BF87E7 #E78F87
square
#AFE787 #87DFE7 #BF87E7 #E78F87
split-complementary
#AFE787 #8F87E7 #E787DF
monochromatic
#6CCB29 #8DDD54 #AFE787 #D1F1BA #EEFAE5

Accessibility & contrast

On white

1.44
#AFE787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.60
#AFE787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE787
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE787#FFFFFF#000000##000000
##AFE7871.001.4414.6014.60
#FFFFFF1.441.0021.0021.00
#00000014.6021.001.001.00
##00000014.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EEDA80
Deuteranopia (green-blind)
#E6D68C
Tritanopia (blue-blind)
#B0E0D0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe787;
/* rgb */ color: rgb(175, 231, 135);
/* oklch */ color: oklch(86.7% 0.138 133.3);
Tailwind
colors: {
  custom: {
    50: '#c8efab',
    500: '#afe787',
    950: '#000000',
  },
}
SCSS
$custom: #afe787;
$custom-light: #c8efab;
$custom-dark: #000000;
JSON
{
  "hex": "#afe787",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 95,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.86745,
    "c": 0.13784,
    "h": 133.3
  },
  "luminance": 0.68015
}

Semantic roles & 50–950 ramp

primary
#AFE787
secondary
#9252C0
accent
#17CF82
background
#FEFFFD
surface
#FAFEF7
border
#D3D6D0
text
#131610
muted
#838581

Preview Lab

Preview with #AFE787

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

Preview Lab → · Contrast checker → · Palette generator →

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