#AFD171#AFD171

#AFD171 is a light, vivid yellow-green. Relative luminance 0.559; OKLCH L 81.5% C 0.129 H 125.2°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#AFD171
RGBrgb(175, 209, 113)
HSLhsl(81, 51%, 63%)
HSVhsv(81, 46%, 82%)
CMYKcmyk(16.3%, 0%, 45.9%, 18%)
CIE-LABlab(79.56, -26.70, 43.74)
CIE-LCHlch(79.56, 51.25, 121.40°)
OKLaboklab(81.45% -0.0742 0.1054)
OKLCHoklch(81.45% 0.129 125.2)
XYZxyz(43.4602, 55.9068, 24.1211)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD171 #9371D1
analogous
#D1C371 #AFD171 #7FD171
triadic
#AFD171 #71AFD1 #D171AF
tetradic
#AFD171 #71D1C3 #9371D1 #D1717F
square
#AFD171 #71D1C3 #9371D1 #D1717F
split-complementary
#AFD171 #717FD1 #C371D1
monochromatic
#739731 #95C243 #AFD171 #C9E09F #E3EFCD

Accessibility & contrast

On white

1.72
#AFD171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#AFD171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD171
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD171#FFFFFF#000000##000000
##AFD1711.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC669
Deuteranopia (green-blind)
#D5C576
Tritanopia (blue-blind)
#B5C9BA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd171;
/* rgb */ color: rgb(175, 209, 113);
/* oklch */ color: oklch(81.5% 0.129 125.2);
Tailwind
colors: {
  custom: {
    50: '#c8df9b',
    500: '#afd171',
    950: '#000000',
  },
}
SCSS
$custom: #afd171;
$custom-light: #c8df9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd171",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 81.25,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.81451,
    "c": 0.12891,
    "h": 125.2
  },
  "luminance": 0.55907
}

Semantic roles & 50–950 ramp

primary
#AFD171
secondary
#674A9C
accent
#27BE5D
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150E
muted
#83847F

Preview Lab

Preview with #AFD171

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

Preview Lab → · Contrast checker → · Palette generator →

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