#AFC04C#AFC04C

#AFC04C is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.2% C 0.142 H 116.9°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#AFC04C
RGBrgb(175, 192, 76)
HSLhsl(69, 48%, 53%)
HSVhsv(69, 60%, 75%)
CMYKcmyk(8.9%, 0%, 60.4%, 24.7%)
CIE-LABlab(74.40, -21.87, 54.97)
CIE-LCHlch(74.40, 59.16, 111.69°)
OKLaboklab(77.18% -0.064 0.1263)
OKLCHoklch(77.18% 0.142 116.9)
XYZxyz(37.8340, 47.3355, 13.9796)
Luminance0.4733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC04C #5D4CC0
analogous
#C0974C #AFC04C #75C04C
triadic
#AFC04C #4CAFC0 #C04CAF
tetradic
#AFC04C #4CC097 #5D4CC0 #C04C75
square
#AFC04C #4CC097 #5D4CC0 #C04C75
split-complementary
#AFC04C #4C75C0 #974CC0
monochromatic
#616C26 #8A9936 #AFC04C #C3D079 #D7E0A7

Accessibility & contrast

On white

2.01
#AFC04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#AFC04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC04C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC04C#FFFFFF#000000##000000
##AFC04C1.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB73F
Deuteranopia (green-blind)
#CBB854
Tritanopia (blue-blind)
#B9B6A7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc04c;
/* rgb */ color: rgb(175, 192, 76);
/* oklch */ color: oklch(77.2% 0.142 116.9);
Tailwind
colors: {
  custom: {
    50: '#c9d383',
    500: '#afc04c',
    950: '#000000',
  },
}
SCSS
$custom: #afc04c;
$custom-light: #c9d383;
$custom-dark: #000000;
JSON
{
  "hex": "#afc04c",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 68.793,
    "s": 47.934,
    "l": 52.549
  },
  "oklch": {
    "l": 0.7718,
    "c": 0.14163,
    "h": 116.9
  },
  "luminance": 0.47335
}

Semantic roles & 50–950 ramp

primary
#AFC04C
secondary
#A29BCD
accent
#50D864
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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