#AFE871#AFE871

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

Color values

HEX#AFE871
RGBrgb(175, 232, 113)
HSLhsl(89, 72%, 68%)
HSVhsv(89, 51%, 91%)
CMYKcmyk(24.6%, 0%, 51.3%, 9%)
CIE-LABlab(86.02, -37.40, 51.59)
CIE-LCHlch(86.02, 63.72, 125.94°)
OKLaboklab(86.66% -0.1041 0.1227)
OKLCHoklch(86.66% 0.161 130.3)
XYZxyz(49.5159, 68.0183, 26.1396)
Luminance0.6802 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE871 #AA71E8
analogous
#E8E571 #AFE871 #74E871
triadic
#AFE871 #71AFE8 #E871AF
tetradic
#AFE871 #71E8E5 #AA71E8 #E87174
square
#AFE871 #71E8E5 #AA71E8 #E87174
split-complementary
#AFE871 #7174E8 #E571E8
monochromatic
#73C01F #91DF3C #AFE871 #CDF1A6 #EAF9DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFE871#FFFFFF#000000##000000
##AFE8711.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)
#F1DA66
Deuteranopia (green-blind)
#E9D679
Tritanopia (blue-blind)
#B2E0CD
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe871;
/* rgb */ color: rgb(175, 232, 113);
/* oklch */ color: oklch(86.7% 0.161 130.3);
Tailwind
colors: {
  custom: {
    50: '#c9ef9c',
    500: '#afe871',
    950: '#000000',
  },
}
SCSS
$custom: #afe871;
$custom-light: #c9ef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe871",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 88.739,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.86657,
    "c": 0.16092,
    "h": 130.3
  },
  "luminance": 0.68019
}

Semantic roles & 50–950 ramp

primary
#AFE871
secondary
#7C3FBF
accent
#11D46F
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE871

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

Preview Lab → · Contrast checker → · Palette generator →

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