#AFC04A#AFC04A

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

Color values

HEX#AFC04A
RGBrgb(175, 192, 74)
HSLhsl(69, 48%, 52%)
HSVhsv(69, 61%, 75%)
CMYKcmyk(8.9%, 0%, 61.5%, 24.7%)
CIE-LABlab(74.39, -22.01, 55.82)
CIE-LCHlch(74.39, 60.00, 111.52°)
OKLaboklab(77.16% -0.0646 0.1279)
OKLCHoklch(77.16% 0.143 116.8)
XYZxyz(37.7656, 47.3081, 13.6191)
Luminance0.4731 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC04A #5B4AC0
analogous
#C0964A #AFC04A #74C04A
triadic
#AFC04A #4AAFC0 #C04AAF
tetradic
#AFC04A #4AC096 #5B4AC0 #C04A74
square
#AFC04A #4AC096 #5B4AC0 #C04A74
split-complementary
#AFC04A #4A74C0 #964AC0
monochromatic
#616B25 #8A9835 #AFC04A #C3D077 #D7E0A5

Accessibility & contrast

On white

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

On black

10.46
#AFC04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC04A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC04A#FFFFFF#000000##000000
##AFC04A1.002.0110.4610.46
#FFFFFF2.011.0021.0021.00
#00000010.4621.001.001.00
##00000010.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afc04a;
/* rgb */ color: rgb(175, 192, 74);
/* oklch */ color: oklch(77.2% 0.143 116.8);
Tailwind
colors: {
  custom: {
    50: '#c9d382',
    500: '#afc04a',
    950: '#000000',
  },
}
SCSS
$custom: #afc04a;
$custom-light: #c9d382;
$custom-dark: #000000;
JSON
{
  "hex": "#afc04a",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 68.644,
    "s": 48.361,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77161,
    "c": 0.14328,
    "h": 116.8
  },
  "luminance": 0.47308
}

Semantic roles & 50–950 ramp

primary
#AFC04A
secondary
#A199CD
accent
#50D863
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140B
muted
#82827C

Preview Lab

Preview with #AFC04A

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

Preview Lab → · Contrast checker → · Palette generator →

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