#AFE271#AFE271

#AFE271 is a very light, vivid yellow-green. Relative luminance 0.647; OKLCH L 85.3% C 0.153 H 129.2°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#AFE271
RGBrgb(175, 226, 113)
HSLhsl(87, 66%, 66%)
HSVhsv(87, 50%, 89%)
CMYKcmyk(22.6%, 0%, 50%, 11.4%)
CIE-LABlab(84.33, -34.67, 49.56)
CIE-LCHlch(84.33, 60.49, 124.98°)
OKLaboklab(85.29% -0.0965 0.1183)
OKLCHoklch(85.29% 0.153 129.2)
XYZxyz(47.8558, 64.6980, 25.5862)
Luminance0.6470 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE271 #A471E2
analogous
#E2DD71 #AFE271 #77E271
triadic
#AFE271 #71AFE2 #E271AF
tetradic
#AFE271 #71E2DD #A471E2 #E27177
square
#AFE271 #71E2DD #A471E2 #E27177
split-complementary
#AFE271 #7177E2 #DD71E2
monochromatic
#73B425 #92D83E #AFE271 #CCECA4 #E8F7D7

Accessibility & contrast

On white

1.51
#AFE271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.94
#AFE271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE271
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE271#FFFFFF#000000##000000
##AFE2711.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD567
Deuteranopia (green-blind)
#E4D178
Tritanopia (blue-blind)
#B3DAC8
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe271;
/* rgb */ color: rgb(175, 226, 113);
/* oklch */ color: oklch(85.3% 0.153 129.2);
Tailwind
colors: {
  custom: {
    50: '#c9eb9c',
    500: '#afe271',
    950: '#000000',
  },
}
SCSS
$custom: #afe271;
$custom-light: #c9eb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe271",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 87.08,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.85293,
    "c": 0.15266,
    "h": 129.2
  },
  "luminance": 0.64699
}

Semantic roles & 50–950 ramp

primary
#AFE271
secondary
#7642B5
accent
#18CE6A
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE271

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

Preview Lab → · Contrast checker → · Palette generator →

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