#AFE187#AFE187

#AFE187 is a very light, vivid yellow-green. Relative luminance 0.647; OKLCH L 85.4% C 0.129 H 132.3°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#AFE187
RGBrgb(175, 225, 135)
HSLhsl(93, 60%, 71%)
HSVhsv(93, 40%, 88%)
CMYKcmyk(22.2%, 0%, 40%, 11.8%)
CIE-LABlab(84.34, -31.63, 38.88)
CIE-LCHlch(84.34, 50.12, 129.12°)
OKLaboklab(85.39% -0.0867 0.0955)
OKLCHoklch(85.39% 0.129 132.3)
XYZxyz(48.9767, 64.7126, 32.8274)
Luminance0.6471 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE187 #B987E1
analogous
#DCE187 #AFE187 #87E18C
triadic
#AFE187 #87AFE1 #E187AF
tetradic
#AFE187 #87DCE1 #B987E1 #E18C87
square
#AFE187 #87DCE1 #B987E1 #E18C87
split-complementary
#AFE187 #8C87E1 #E187DC
monochromatic
#6FBE30 #8ED556 #AFE187 #D0EDB8 #EFF9E7

Accessibility & contrast

On white

1.51
#AFE187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.94
#AFE187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE187
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE187#FFFFFF#000000##000000
##AFE1871.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D580
Deuteranopia (green-blind)
#E1D18C
Tritanopia (blue-blind)
#B1DACB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe187;
/* rgb */ color: rgb(175, 225, 135);
/* oklch */ color: oklch(85.4% 0.129 132.3);
Tailwind
colors: {
  custom: {
    50: '#c8eaab',
    500: '#afe187',
    950: '#000000',
  },
}
SCSS
$custom: #afe187;
$custom-light: #c8eaab;
$custom-dark: #000000;
JSON
{
  "hex": "#afe187",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 135
  },
  "hsl": {
    "h": 93.333,
    "s": 60,
    "l": 70.588
  },
  "oklch": {
    "l": 0.85392,
    "c": 0.12898,
    "h": 132.3
  },
  "luminance": 0.64714
}

Semantic roles & 50–950 ramp

primary
#AFE187
secondary
#8C53B9
accent
#1EC87C
background
#FDFEFD
surface
#F9FDF7
border
#D2D5D0
text
#131610
muted
#828481

Preview Lab

Preview with #AFE187

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

Preview Lab → · Contrast checker → · Palette generator →

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