#AFE371#AFE371

#AFE371 is a very light, vivid yellow-green. Relative luminance 0.652; OKLCH L 85.5% C 0.154 H 129.4°. Best body text is #000000 at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#AFE371
RGBrgb(175, 227, 113)
HSLhsl(87, 67%, 67%)
HSVhsv(87, 50%, 89%)
CMYKcmyk(22.9%, 0%, 50.2%, 11%)
CIE-LABlab(84.61, -35.13, 49.90)
CIE-LCHlch(84.61, 61.03, 125.15°)
OKLaboklab(85.52% -0.0978 0.119)
OKLCHoklch(85.52% 0.154 129.4)
XYZxyz(48.1285, 65.2434, 25.6772)
Luminance0.6524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE371 #A571E3
analogous
#E3DE71 #AFE371 #76E371
triadic
#AFE371 #71AFE3 #E371AF
tetradic
#AFE371 #71E3DE #A571E3 #E37176
square
#AFE371 #71E3DE #A571E3 #E37176
split-complementary
#AFE371 #7176E3 #DE71E3
monochromatic
#73B624 #92D93E #AFE371 #CCEDA4 #E9F7D7

Accessibility & contrast

On white

1.49
#AFE371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.05
#AFE371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE371
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE371#FFFFFF#000000##000000
##AFE3711.001.4914.0514.05
#FFFFFF1.491.0021.0021.00
#00000014.0521.001.001.00
##00000014.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD667
Deuteranopia (green-blind)
#E5D278
Tritanopia (blue-blind)
#B3DBC9
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #afe371;
/* rgb */ color: rgb(175, 227, 113);
/* oklch */ color: oklch(85.5% 0.154 129.4);
Tailwind
colors: {
  custom: {
    50: '#c9ec9c',
    500: '#afe371',
    950: '#000000',
  },
}
SCSS
$custom: #afe371;
$custom-light: #c9ec9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe371",
  "rgb": {
    "r": 175,
    "g": 227,
    "b": 113
  },
  "hsl": {
    "h": 87.368,
    "s": 67.059,
    "l": 66.667
  },
  "oklch": {
    "l": 0.8552,
    "c": 0.15404,
    "h": 129.4
  },
  "luminance": 0.65244
}

Semantic roles & 50–950 ramp

primary
#AFE371
secondary
#7742B6
accent
#17CF6B
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE371

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

Preview Lab → · Contrast checker → · Palette generator →

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