#AFD372#AFD372

#AFD372 is a light, vivid yellow-green. Relative luminance 0.569; OKLCH L 81.9% C 0.131 H 125.9°. Best body text is #000000 at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#AFD372
RGBrgb(175, 211, 114)
HSLhsl(82, 52%, 64%)
HSVhsv(82, 46%, 83%)
CMYKcmyk(17.1%, 0%, 46%, 17.3%)
CIE-LABlab(80.13, -27.55, 43.96)
CIE-LCHlch(80.13, 51.88, 122.07°)
OKLaboklab(81.92% -0.0766 0.1059)
OKLCHoklch(81.92% 0.131 125.9)
XYZxyz(44.0105, 56.9170, 24.5838)
Luminance0.5692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD372 #9672D3
analogous
#D3C672 #AFD372 #7ED372
triadic
#AFD372 #72AFD3 #D372AF
tetradic
#AFD372 #72D3C6 #9672D3 #D3727E
square
#AFD372 #72D3C6 #9672D3 #D3727E
split-complementary
#AFD372 #727ED3 #C672D3
monochromatic
#739A30 #95C443 #AFD372 #C9E2A1 #E4F0CF

Accessibility & contrast

On white

1.70
#AFD372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.38
#AFD372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD372
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD372#FFFFFF#000000##000000
##AFD3721.001.7012.3812.38
#FFFFFF1.701.0021.0021.00
#00000012.3821.001.001.00
##00000012.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC86A
Deuteranopia (green-blind)
#D7C677
Tritanopia (blue-blind)
#B4CBBC
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd372;
/* rgb */ color: rgb(175, 211, 114);
/* oklch */ color: oklch(81.9% 0.131 125.9);
Tailwind
colors: {
  custom: {
    50: '#c8e09c',
    500: '#afd372',
    950: '#000000',
  },
}
SCSS
$custom: #afd372;
$custom-light: #c8e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#afd372",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 114
  },
  "hsl": {
    "h": 82.268,
    "s": 52.432,
    "l": 63.725
  },
  "oklch": {
    "l": 0.81916,
    "c": 0.1307,
    "h": 125.9
  },
  "luminance": 0.56917
}

Semantic roles & 50–950 ramp

primary
#AFD372
secondary
#6A4A9F
accent
#26C05F
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150E
muted
#83847F

Preview Lab

Preview with #AFD372

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

Preview Lab → · Contrast checker → · Palette generator →

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