#AFD271#AFD271

#AFD271 is a light, vivid yellow-green. Relative luminance 0.564; OKLCH L 81.7% C 0.130 H 125.5°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#AFD271
RGBrgb(175, 210, 113)
HSLhsl(82, 52%, 63%)
HSVhsv(82, 46%, 82%)
CMYKcmyk(16.7%, 0%, 46.2%, 17.6%)
CIE-LABlab(79.84, -27.18, 44.09)
CIE-LCHlch(79.84, 51.79, 121.65°)
OKLaboklab(81.68% -0.0756 0.1062)
OKLCHoklch(81.68% 0.13 125.5)
XYZxyz(43.7063, 56.3990, 24.2031)
Luminance0.5640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD271 #9471D2
analogous
#D2C471 #AFD271 #7ED271
triadic
#AFD271 #71AFD2 #D271AF
tetradic
#AFD271 #71D2C4 #9471D2 #D2717E
square
#AFD271 #71D2C4 #9471D2 #D2717E
split-complementary
#AFD271 #717ED2 #C471D2
monochromatic
#739830 #95C343 #AFD271 #C9E19F #E3EFCE

Accessibility & contrast

On white

1.71
#AFD271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#AFD271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD271
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD271#FFFFFF#000000##000000
##AFD2711.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC769
Deuteranopia (green-blind)
#D6C576
Tritanopia (blue-blind)
#B5CABB
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd271;
/* rgb */ color: rgb(175, 210, 113);
/* oklch */ color: oklch(81.7% 0.130 125.5);
Tailwind
colors: {
  custom: {
    50: '#c8e09b',
    500: '#afd271',
    950: '#000000',
  },
}
SCSS
$custom: #afd271;
$custom-light: #c8e09b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd271",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 81.649,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.81676,
    "c": 0.13032,
    "h": 125.5
  },
  "luminance": 0.56399
}

Semantic roles & 50–950 ramp

primary
#AFD271
secondary
#684A9E
accent
#26BF5D
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150E
muted
#83847F

Preview Lab

Preview with #AFD271

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

Preview Lab → · Contrast checker → · Palette generator →

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