#AFCC51#AFCC51

#AFCC51 is a light, vivid yellow-green. Relative luminance 0.529; OKLCH L 79.9% C 0.152 H 121.2°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#AFCC51
RGBrgb(175, 204, 81)
HSLhsl(74, 55%, 56%)
HSVhsv(74, 60%, 80%)
CMYKcmyk(14.2%, 0%, 60.3%, 20%)
CIE-LABlab(77.81, -27.32, 56.55)
CIE-LCHlch(77.81, 62.80, 115.79°)
OKLaboklab(79.93% -0.0788 0.1303)
OKLCHoklch(79.93% 0.152 121.2)
XYZxyz(40.7577, 52.8938, 15.8453)
Luminance0.5289 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCC51 #6E51CC
analogous
#CCAB51 #AFCC51 #71CC51
triadic
#AFCC51 #51AFCC #CC51AF
tetradic
#AFCC51 #51CCAB #6E51CC #CC5171
square
#AFCC51 #51CCAB #6E51CC #CC5171
split-complementary
#AFCC51 #5171CC #AB51CC
monochromatic
#697E25 #90AD33 #AFCC51 #C5DA80 #DBE8B0

Accessibility & contrast

On white

1.81
#AFCC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#AFCC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCC51
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCC51#FFFFFF#000000##000000
##AFCC511.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#D4C059
Tritanopia (blue-blind)
#B8C2B2
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcc51;
/* rgb */ color: rgb(175, 204, 81);
/* oklch */ color: oklch(79.9% 0.152 121.2);
Tailwind
colors: {
  custom: {
    50: '#c9db87',
    500: '#afcc51',
    950: '#000000',
  },
}
SCSS
$custom: #afcc51;
$custom-light: #c9db87;
$custom-dark: #000000;
JSON
{
  "hex": "#afcc51",
  "rgb": {
    "r": 175,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 74.146,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.79933,
    "c": 0.15227,
    "h": 121.2
  },
  "luminance": 0.52894
}

Semantic roles & 50–950 ramp

primary
#AFCC51
secondary
#4D3C86
accent
#4ADE6D
background
#FEFEFC
surface
#FBFBF3
border
#D4D4CD
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFCC51

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

Preview Lab → · Contrast checker → · Palette generator →

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