#AFE87C#AFE87C

#AFE87C is a very light, vivid yellow-green. Relative luminance 0.683; OKLCH L 86.8% C 0.150 H 131.7°. Best body text is #000000 at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#AFE87C
RGBrgb(175, 232, 124)
HSLhsl(92, 70%, 70%)
HSVhsv(92, 47%, 91%)
CMYKcmyk(24.6%, 0%, 46.6%, 9%)
CIE-LABlab(86.15, -36.20, 46.55)
CIE-LCHlch(86.15, 58.97, 127.87°)
OKLaboklab(86.81% -0.1 0.1123)
OKLCHoklch(86.81% 0.15 131.7)
XYZxyz(50.1731, 68.2812, 29.6010)
Luminance0.6828 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE87C #B57CE8
analogous
#E5E87C #AFE87C #7CE87F
triadic
#AFE87C #7CAFE8 #E87CAF
tetradic
#AFE87C #7CE5E8 #B57CE8 #E87F7C
square
#AFE87C #7CE5E8 #B57CE8 #E87F7C
split-complementary
#AFE87C #7F7CE8 #E87CE5
monochromatic
#70C723 #8FDF48 #AFE87C #CFF1B0 #EFFAE4

Accessibility & contrast

On white

1.43
#AFE87C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.66
#AFE87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE87C
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE87C#FFFFFF#000000##000000
##AFE87C1.001.4314.6614.66
#FFFFFF1.431.0021.0021.00
#00000014.6621.001.001.00
##00000014.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA73
Deuteranopia (green-blind)
#E8D682
Tritanopia (blue-blind)
#B1E0CF
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe87c;
/* rgb */ color: rgb(175, 232, 124);
/* oklch */ color: oklch(86.8% 0.150 131.7);
Tailwind
colors: {
  custom: {
    50: '#c9efa4',
    500: '#afe87c',
    950: '#000000',
  },
}
SCSS
$custom: #afe87c;
$custom-light: #c9efa4;
$custom-dark: #000000;
JSON
{
  "hex": "#afe87c",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 124
  },
  "hsl": {
    "h": 91.667,
    "s": 70.13,
    "l": 69.804
  },
  "oklch": {
    "l": 0.86805,
    "c": 0.15039,
    "h": 131.7
  },
  "luminance": 0.68282
}

Semantic roles & 50–950 ramp

primary
#AFE87C
secondary
#8748C0
accent
#13D278
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE87C

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

Preview Lab → · Contrast checker → · Palette generator →

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