#AFC04F#AFC04F

#AFC04F is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.139 H 117.0°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#AFC04F
RGBrgb(175, 192, 79)
HSLhsl(69, 47%, 53%)
HSVhsv(69, 59%, 75%)
CMYKcmyk(8.9%, 0%, 58.9%, 24.7%)
CIE-LABlab(74.43, -21.64, 53.68)
CIE-LCHlch(74.43, 57.88, 111.95°)
OKLaboklab(77.21% -0.0631 0.124)
OKLCHoklch(77.21% 0.139 117)
XYZxyz(37.9408, 47.3782, 14.5418)
Luminance0.4738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC04F #604FC0
analogous
#C0994F #AFC04F #76C04F
triadic
#AFC04F #4FAFC0 #C04FAF
tetradic
#AFC04F #4FC099 #604FC0 #C04F76
square
#AFC04F #4FC099 #604FC0 #C04F76
split-complementary
#AFC04F #4F76C0 #994FC0
monochromatic
#636D27 #8C9A37 #AFC04F #C3D07C #D8E0A9

Accessibility & contrast

On white

2.00
#AFC04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#AFC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC04F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC04F#FFFFFF#000000##000000
##AFC04F1.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB742
Deuteranopia (green-blind)
#CAB856
Tritanopia (blue-blind)
#B9B6A8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc04f;
/* rgb */ color: rgb(175, 192, 79);
/* oklch */ color: oklch(77.2% 0.139 117.0);
Tailwind
colors: {
  custom: {
    50: '#c9d385',
    500: '#afc04f',
    950: '#000000',
  },
}
SCSS
$custom: #afc04f;
$custom-light: #c9d385;
$custom-dark: #000000;
JSON
{
  "hex": "#afc04f",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 69.027,
    "s": 47.28,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77211,
    "c": 0.1391,
    "h": 117
  },
  "luminance": 0.47378
}

Semantic roles & 50–950 ramp

primary
#AFC04F
secondary
#A49DCE
accent
#51D765
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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