#AFC72A#AFC72A

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

Color values

HEX#AFC72A
RGBrgb(175, 199, 42)
HSLhsl(69, 65%, 47%)
HSVhsv(69, 79%, 78%)
CMYKcmyk(12.1%, 0%, 78.9%, 22%)
CIE-LABlab(76.15, -27.17, 69.13)
CIE-LCHlch(76.15, 74.28, 111.45°)
OKLaboklab(78.51% -0.0818 0.1509)
OKLCHoklch(78.51% 0.172 118.5)
XYZxyz(38.5214, 50.1283, 9.8365)
Luminance0.5013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC72A #422AC7
analogous
#C7912A #AFC72A #61C72A
triadic
#AFC72A #2AAFC7 #C72AAF
tetradic
#AFC72A #2AC791 #422AC7 #C72A61
square
#AFC72A #2AC791 #422AC7 #C72A61
split-complementary
#AFC72A #2A61C7 #912AC7
monochromatic
#566215 #83941F #AFC72A #C6DB53 #D7E586

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC72A#FFFFFF#000000##000000
##AFC72A1.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)
#D4BC00
Deuteranopia (green-blind)
#D2BC3A
Tritanopia (blue-blind)
#BABCAA
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #afc72a;
/* rgb */ color: rgb(175, 199, 42);
/* oklch */ color: oklch(78.5% 0.172 118.5);
Tailwind
colors: {
  custom: {
    50: '#cbd872',
    500: '#afc72a',
    950: '#000000',
  },
}
SCSS
$custom: #afc72a;
$custom-light: #cbd872;
$custom-dark: #000000;
JSON
{
  "hex": "#afc72a",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 42
  },
  "hsl": {
    "h": 69.172,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.78511,
    "c": 0.17166,
    "h": 118.5
  },
  "luminance": 0.50128
}

Semantic roles & 50–950 ramp

primary
#AFC72A
secondary
#33296D
accent
#40E859
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #AFC72A

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

Preview Lab → · Contrast checker → · Palette generator →

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