#AFE972#AFE972

#AFE972 is a very light, vivid yellow-green. Relative luminance 0.686; OKLCH L 86.9% C 0.161 H 130.6°. Best body text is #000000 at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#AFE972
RGBrgb(175, 233, 114)
HSLhsl(89, 73%, 68%)
HSVhsv(89, 51%, 91%)
CMYKcmyk(24.9%, 0%, 51.1%, 8.6%)
CIE-LABlab(86.31, -37.75, 51.47)
CIE-LCHlch(86.31, 63.83, 126.25°)
OKLaboklab(86.9% -0.105 0.1225)
OKLCHoklch(86.9% 0.161 130.6)
XYZxyz(49.8548, 68.6055, 26.5319)
Luminance0.6861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE972 #AC72E9
analogous
#E9E872 #AFE972 #73E972
triadic
#AFE972 #72AFE9 #E972AF
tetradic
#AFE972 #72E9E8 #AC72E9 #E97273
square
#AFE972 #72E9E8 #AC72E9 #E97273
split-complementary
#AFE972 #7273E9 #E872E9
monochromatic
#72C21E #91E13D #AFE972 #CDF1A7 #EBFADC

Accessibility & contrast

On white

1.43
#AFE972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.72
#AFE972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE972
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE972#FFFFFF#000000##000000
##AFE9721.001.4314.7214.72
#FFFFFF1.431.0021.0021.00
#00000014.7221.001.001.00
##00000014.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DB67
Deuteranopia (green-blind)
#EAD77A
Tritanopia (blue-blind)
#B2E1CE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe972;
/* rgb */ color: rgb(175, 233, 114);
/* oklch */ color: oklch(86.9% 0.161 130.6);
Tailwind
colors: {
  custom: {
    50: '#c9f09d',
    500: '#afe972',
    950: '#000000',
  },
}
SCSS
$custom: #afe972;
$custom-light: #c9f09d;
$custom-dark: #000000;
JSON
{
  "hex": "#afe972",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 114
  },
  "hsl": {
    "h": 89.244,
    "s": 73.006,
    "l": 68.039
  },
  "oklch": {
    "l": 0.86897,
    "c": 0.16137,
    "h": 130.6
  },
  "luminance": 0.68607
}

Semantic roles & 50–950 ramp

primary
#AFE972
secondary
#7E3EC1
accent
#10D570
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE972

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

Preview Lab → · Contrast checker → · Palette generator →

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