#AFCC40#AFCC40

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

Color values

HEX#AFCC40
RGBrgb(175, 204, 64)
HSLhsl(72, 58%, 53%)
HSVhsv(72, 69%, 80%)
CMYKcmyk(14.2%, 0%, 68.6%, 20%)
CIE-LABlab(77.68, -28.48, 63.29)
CIE-LCHlch(77.68, 69.41, 114.23°)
OKLaboklab(79.78% -0.0836 0.1422)
OKLCHoklch(79.78% 0.165 120.4)
XYZxyz(40.1981, 52.6700, 12.8981)
Luminance0.5267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCC40 #5D40CC
analogous
#CCA340 #AFCC40 #69CC40
triadic
#AFCC40 #40AFCC #CC40AF
tetradic
#AFCC40 #40CCA3 #5D40CC #CC4069
square
#AFCC40 #40CCA3 #5D40CC #CC4069
split-complementary
#AFCC40 #4069CC #A340CC
monochromatic
#61731F #8AA32C #AFCC40 #C3D970 #D7E6A1

Accessibility & contrast

On white

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

On black

11.53
#AFCC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCC40
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCC40#FFFFFF#000000##000000
##AFCC401.001.8211.5311.53
#FFFFFF1.821.0021.0021.00
#00000011.5321.001.001.00
##00000011.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C02A
Deuteranopia (green-blind)
#D5C04B
Tritanopia (blue-blind)
#B9C1B0
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcc40;
/* rgb */ color: rgb(175, 204, 64);
/* oklch */ color: oklch(79.8% 0.165 120.4);
Tailwind
colors: {
  custom: {
    50: '#cadb7d',
    500: '#afcc40',
    950: '#000000',
  },
}
SCSS
$custom: #afcc40;
$custom-light: #cadb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afcc40",
  "rgb": {
    "r": 175,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 72.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.79784,
    "c": 0.16495,
    "h": 120.4
  },
  "luminance": 0.5267
}

Semantic roles & 50–950 ramp

primary
#AFCC40
secondary
#43347C
accent
#47E167
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCC40

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

Preview Lab → · Contrast checker → · Palette generator →

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