#AFE771#AFE771

#AFE771 is a very light, vivid yellow-green. Relative luminance 0.675; OKLCH L 86.4% C 0.160 H 130.1°. Best body text is #000000 at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#AFE771
RGBrgb(175, 231, 113)
HSLhsl(88, 71%, 67%)
HSVhsv(88, 51%, 91%)
CMYKcmyk(24.2%, 0%, 51.1%, 9.4%)
CIE-LABlab(85.73, -36.95, 51.25)
CIE-LCHlch(85.73, 63.18, 125.79°)
OKLaboklab(86.43% -0.1028 0.122)
OKLCHoklch(86.43% 0.16 130.1)
XYZxyz(49.2352, 67.4569, 26.0461)
Luminance0.6746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE771 #A971E7
analogous
#E7E471 #AFE771 #74E771
triadic
#AFE771 #71AFE7 #E771AF
tetradic
#AFE771 #71E7E4 #A971E7 #E77174
square
#AFE771 #71E7E4 #A971E7 #E77174
split-complementary
#AFE771 #7174E7 #E471E7
monochromatic
#73BE20 #92DE3D #AFE771 #CCF0A5 #EAF9DA

Accessibility & contrast

On white

1.45
#AFE771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.49
#AFE771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE771
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE771#FFFFFF#000000##000000
##AFE7711.001.4514.4914.49
#FFFFFF1.451.0021.0021.00
#00000014.4921.001.001.00
##00000014.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D966
Deuteranopia (green-blind)
#E8D578
Tritanopia (blue-blind)
#B2DFCC
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #afe771;
/* rgb */ color: rgb(175, 231, 113);
/* oklch */ color: oklch(86.4% 0.160 130.1);
Tailwind
colors: {
  custom: {
    50: '#c9ef9c',
    500: '#afe771',
    950: '#000000',
  },
}
SCSS
$custom: #afe771;
$custom-light: #c9ef9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe771",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 113
  },
  "hsl": {
    "h": 88.475,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86429,
    "c": 0.15955,
    "h": 130.1
  },
  "luminance": 0.67458
}

Semantic roles & 50–950 ramp

primary
#AFE771
secondary
#7B3FBD
accent
#12D36E
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE771

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

Preview Lab → · Contrast checker → · Palette generator →

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