#AFCC42#AFCC42

#AFCC42 is a light, vivid yellow-green. Relative luminance 0.527; OKLCH L 79.8% C 0.164 H 120.5°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#AFCC42
RGBrgb(175, 204, 66)
HSLhsl(73, 58%, 53%)
HSVhsv(73, 68%, 80%)
CMYKcmyk(14.2%, 0%, 67.6%, 20%)
CIE-LABlab(77.69, -28.36, 62.55)
CIE-LCHlch(77.69, 68.68, 114.39°)
OKLaboklab(79.8% -0.0831 0.1409)
OKLCHoklch(79.8% 0.164 120.5)
XYZxyz(40.2561, 52.6931, 13.2032)
Luminance0.5269 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCC42 #5F42CC
analogous
#CCA442 #AFCC42 #6ACC42
triadic
#AFCC42 #42AFCC #CC42AF
tetradic
#AFCC42 #42CCA4 #5F42CC #CC426A
square
#AFCC42 #42CCA4 #5F42CC #CC426A
split-complementary
#AFCC42 #426ACC #A442CC
monochromatic
#62741F #8BA42C #AFCC42 #C3D972 #D8E6A2

Accessibility & contrast

On white

1.82
#AFCC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#AFCC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCC42
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCC42#FFFFFF#000000##000000
##AFCC421.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02D
Deuteranopia (green-blind)
#D5C04D
Tritanopia (blue-blind)
#B8C2B0
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcc42;
/* rgb */ color: rgb(175, 204, 66);
/* oklch */ color: oklch(79.8% 0.164 120.5);
Tailwind
colors: {
  custom: {
    50: '#cadb7e',
    500: '#afcc42',
    950: '#000000',
  },
}
SCSS
$custom: #afcc42;
$custom-light: #cadb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afcc42",
  "rgb": {
    "r": 175,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 72.609,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79799,
    "c": 0.1636,
    "h": 120.5
  },
  "luminance": 0.52693
}

Semantic roles & 50–950 ramp

primary
#AFCC42
secondary
#44357D
accent
#47E167
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCC42

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

Preview Lab → · Contrast checker → · Palette generator →

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