#AFC72F#AFC72F

#AFC72F is a light, vivid yellow. Relative luminance 0.502; OKLCH L 78.5% C 0.169 H 118.5°. Best body text is #000000 at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#AFC72F
RGBrgb(175, 199, 47)
HSLhsl(69, 62%, 48%)
HSVhsv(69, 76%, 78%)
CMYKcmyk(12.1%, 0%, 76.4%, 22%)
CIE-LABlab(76.17, -26.97, 67.68)
CIE-LCHlch(76.17, 72.85, 111.72°)
OKLaboklab(78.54% -0.0809 0.1487)
OKLCHoklch(78.54% 0.169 118.5)
XYZxyz(38.6166, 50.1664, 10.3375)
Luminance0.5017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC72F #472FC7
analogous
#C7932F #AFC72F #63C72F
triadic
#AFC72F #2FAFC7 #C72FAF
tetradic
#AFC72F #2FC793 #472FC7 #C72F63
square
#AFC72F #2FC793 #472FC7 #C72F63
split-complementary
#AFC72F #2F63C7 #932FC7
monochromatic
#586418 #839523 #AFC72F #C4D85B #D6E48C

Accessibility & contrast

On white

1.90
#AFC72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.03
#AFC72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC72F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC72F#FFFFFF#000000##000000
##AFC72F1.001.9011.0311.03
#FFFFFF1.901.0021.0021.00
#00000011.0321.001.001.00
##00000011.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC03
Deuteranopia (green-blind)
#D2BC3D
Tritanopia (blue-blind)
#BABCAB
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #afc72f;
/* rgb */ color: rgb(175, 199, 47);
/* oklch */ color: oklch(78.5% 0.169 118.5);
Tailwind
colors: {
  custom: {
    50: '#cbd874',
    500: '#afc72f',
    950: '#000000',
  },
}
SCSS
$custom: #afc72f;
$custom-light: #cbd874;
$custom-dark: #000000;
JSON
{
  "hex": "#afc72f",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 47
  },
  "hsl": {
    "h": 69.474,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.78537,
    "c": 0.16924,
    "h": 118.5
  },
  "luminance": 0.50166
}

Semantic roles & 50–950 ramp

primary
#AFC72F
secondary
#362C6E
accent
#43E55C
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #AFC72F

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

Preview Lab → · Contrast checker → · Palette generator →

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