#AFE87B#AFE87B

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

Color values

HEX#AFE87B
RGBrgb(175, 232, 123)
HSLhsl(91, 70%, 70%)
HSVhsv(91, 47%, 91%)
CMYKcmyk(24.6%, 0%, 47%, 9%)
CIE-LABlab(86.13, -36.31, 47.02)
CIE-LCHlch(86.13, 59.41, 127.68°)
OKLaboklab(86.79% -0.1004 0.1133)
OKLCHoklch(86.79% 0.151 131.6)
XYZxyz(50.1102, 68.2560, 29.2697)
Luminance0.6826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE87B #B47BE8
analogous
#E6E87B #AFE87B #7BE87E
triadic
#AFE87B #7BAFE8 #E87BAF
tetradic
#AFE87B #7BE6E8 #B47BE8 #E87E7B
square
#AFE87B #7BE6E8 #B47BE8 #E87E7B
split-complementary
#AFE87B #7E7BE8 #E87BE6
monochromatic
#71C623 #8FDF47 #AFE87B #CFF1AF #EEFAE3

Accessibility & contrast

On white

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

On black

14.65
#AFE87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE87B
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE87B#FFFFFF#000000##000000
##AFE87B1.001.4314.6514.65
#FFFFFF1.431.0021.0021.00
#00000014.6521.001.001.00
##00000014.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe87b;
/* rgb */ color: rgb(175, 232, 123);
/* oklch */ color: oklch(86.8% 0.151 131.6);
Tailwind
colors: {
  custom: {
    50: '#c9efa3',
    500: '#afe87b',
    950: '#000000',
  },
}
SCSS
$custom: #afe87b;
$custom-light: #c9efa3;
$custom-dark: #000000;
JSON
{
  "hex": "#afe87b",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 123
  },
  "hsl": {
    "h": 91.376,
    "s": 70.323,
    "l": 69.608
  },
  "oklch": {
    "l": 0.86791,
    "c": 0.15137,
    "h": 131.6
  },
  "luminance": 0.68257
}

Semantic roles & 50–950 ramp

primary
#AFE87B
secondary
#8647C0
accent
#13D277
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE87B

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

Preview Lab → · Contrast checker → · Palette generator →

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