#AFE172#AFE172

#AFE172 is a very light, vivid yellow-green. Relative luminance 0.642; OKLCH L 85.1% C 0.150 H 129.1°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#AFE172
RGBrgb(175, 225, 114)
HSLhsl(87, 65%, 66%)
HSVhsv(87, 49%, 88%)
CMYKcmyk(22.2%, 0%, 49.3%, 11.8%)
CIE-LABlab(84.06, -34.11, 48.76)
CIE-LCHlch(84.06, 59.51, 124.97°)
OKLaboklab(85.08% -0.0949 0.1166)
OKLCHoklch(85.08% 0.15 129.1)
XYZxyz(47.6412, 64.1784, 25.7940)
Luminance0.6418 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE172 #A472E1
analogous
#E1DC72 #AFE172 #78E172
triadic
#AFE172 #72AFE1 #E172AF
tetradic
#AFE172 #72E1DC #A472E1 #E17278
square
#AFE172 #72E1DC #A472E1 #E17278
split-complementary
#AFE172 #7278E1 #DC72E1
monochromatic
#73B326 #92D640 #AFE172 #CCECA4 #E8F6D7

Accessibility & contrast

On white

1.52
#AFE172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#AFE172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE172
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE172#FFFFFF#000000##000000
##AFE1721.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD468
Deuteranopia (green-blind)
#E3D179
Tritanopia (blue-blind)
#B3D9C7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe172;
/* rgb */ color: rgb(175, 225, 114);
/* oklch */ color: oklch(85.1% 0.150 129.1);
Tailwind
colors: {
  custom: {
    50: '#c9ea9d',
    500: '#afe172',
    950: '#000000',
  },
}
SCSS
$custom: #afe172;
$custom-light: #c9ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#afe172",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 87.027,
    "s": 64.912,
    "l": 66.471
  },
  "oklch": {
    "l": 0.85079,
    "c": 0.15031,
    "h": 129.1
  },
  "luminance": 0.64179
}

Semantic roles & 50–950 ramp

primary
#AFE172
secondary
#7643B4
accent
#19CD6A
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE172

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

Preview Lab → · Contrast checker → · Palette generator →

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