#AFE772#AFE772

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

Color values

HEX#AFE772
RGBrgb(175, 231, 114)
HSLhsl(89, 71%, 68%)
HSVhsv(89, 51%, 91%)
CMYKcmyk(24.2%, 0%, 50.6%, 9.4%)
CIE-LABlab(85.75, -36.85, 50.80)
CIE-LCHlch(85.75, 62.75, 125.95°)
OKLaboklab(86.44% -0.1025 0.1211)
OKLCHoklch(86.44% 0.159 130.3)
XYZxyz(49.2918, 67.4796, 26.3442)
Luminance0.6748 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE772 #AA72E7
analogous
#E7E472 #AFE772 #74E772
triadic
#AFE772 #72AFE7 #E772AF
tetradic
#AFE772 #72E7E4 #AA72E7 #E77274
square
#AFE772 #72E7E4 #AA72E7 #E77274
split-complementary
#AFE772 #7274E7 #E472E7
monochromatic
#73BE20 #91DE3E #AFE772 #CDF0A6 #EAF9DB

Accessibility & contrast

On white

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

On black

14.50
#AFE772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE772
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE772#FFFFFF#000000##000000
##AFE7721.001.4514.5014.50
#FFFFFF1.451.0021.0021.00
#00000014.5021.001.001.00
##00000014.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe772;
/* rgb */ color: rgb(175, 231, 114);
/* oklch */ color: oklch(86.4% 0.159 130.3);
Tailwind
colors: {
  custom: {
    50: '#c9ef9d',
    500: '#afe772',
    950: '#000000',
  },
}
SCSS
$custom: #afe772;
$custom-light: #c9ef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#afe772",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 114
  },
  "hsl": {
    "h": 88.718,
    "s": 70.909,
    "l": 67.647
  },
  "oklch": {
    "l": 0.86442,
    "c": 0.15862,
    "h": 130.3
  },
  "luminance": 0.67481
}

Semantic roles & 50–950 ramp

primary
#AFE772
secondary
#7C40BD
accent
#13D36F
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE772

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

Preview Lab → · Contrast checker → · Palette generator →

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