#AFE171#AFE171

#AFE171 is a very light, vivid yellow-green. Relative luminance 0.642; OKLCH L 85.1% C 0.151 H 129.0°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#AFE171
RGBrgb(175, 225, 113)
HSLhsl(87, 65%, 66%)
HSVhsv(87, 50%, 88%)
CMYKcmyk(22.2%, 0%, 49.8%, 11.8%)
CIE-LABlab(84.05, -34.22, 49.22)
CIE-LCHlch(84.05, 59.95, 124.80°)
OKLaboklab(85.07% -0.0952 0.1175)
OKLCHoklch(85.07% 0.151 129)
XYZxyz(47.5846, 64.1558, 25.4959)
Luminance0.6416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE171 #A371E1
analogous
#E1DB71 #AFE171 #77E171
triadic
#AFE171 #71AFE1 #E171AF
tetradic
#AFE171 #71E1DB #A371E1 #E17177
square
#AFE171 #71E1DB #A371E1 #E17177
split-complementary
#AFE171 #7177E1 #DB71E1
monochromatic
#73B226 #93D63E #AFE171 #CBECA4 #E8F6D6

Accessibility & contrast

On white

1.52
#AFE171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.83
#AFE171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE171
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE171#FFFFFF#000000##000000
##AFE1711.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD467
Deuteranopia (green-blind)
#E3D178
Tritanopia (blue-blind)
#B3D9C7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe171;
/* rgb */ color: rgb(175, 225, 113);
/* oklch */ color: oklch(85.1% 0.151 129.0);
Tailwind
colors: {
  custom: {
    50: '#c9ea9c',
    500: '#afe171',
    950: '#000000',
  },
}
SCSS
$custom: #afe171;
$custom-light: #c9ea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe171",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 113
  },
  "hsl": {
    "h": 86.786,
    "s": 65.116,
    "l": 66.275
  },
  "oklch": {
    "l": 0.85066,
    "c": 0.15127,
    "h": 129
  },
  "luminance": 0.64157
}

Semantic roles & 50–950 ramp

primary
#AFE171
secondary
#7543B3
accent
#19CD69
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE171

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

Preview Lab → · Contrast checker → · Palette generator →

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