#AFCC31#AFCC31

#AFCC31 is a light, vivid yellow-green. Relative luminance 0.525; OKLCH L 79.7% C 0.174 H 120.0°. Best body text is #000000 at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#AFCC31
RGBrgb(175, 204, 49)
HSLhsl(71, 61%, 50%)
HSVhsv(71, 76%, 80%)
CMYKcmyk(14.2%, 0%, 76%, 20%)
CIE-LABlab(77.59, -29.26, 68.37)
CIE-LCHlch(77.59, 74.37, 113.17°)
OKLaboklab(79.68% -0.087 0.1505)
OKLCHoklch(79.68% 0.174 120)
XYZxyz(39.8272, 52.5216, 10.9447)
Luminance0.5252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCC31 #4E31CC
analogous
#CC9C31 #AFCC31 #61CC31
triadic
#AFCC31 #31AFCC #CC31AF
tetradic
#AFCC31 #31CC9C #4E31CC #CC3161
square
#AFCC31 #31CC9C #4E31CC #CC3161
split-complementary
#AFCC31 #3161CC #9C31CC
monochromatic
#5A6919 #859B25 #AFCC31 #C3D961 #D6E592

Accessibility & contrast

On white

1.83
#AFCC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.50
#AFCC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCC31
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCC31#FFFFFF#000000##000000
##AFCC311.001.8311.5011.50
#FFFFFF1.831.0021.0021.00
#00000011.5021.001.001.00
##00000011.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C005
Deuteranopia (green-blind)
#D6C040
Tritanopia (blue-blind)
#B9C1AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcc31;
/* rgb */ color: rgb(175, 204, 49);
/* oklch */ color: oklch(79.7% 0.174 120.0);
Tailwind
colors: {
  custom: {
    50: '#cbdb75',
    500: '#afcc31',
    950: '#000000',
  },
}
SCSS
$custom: #afcc31;
$custom-light: #cbdb75;
$custom-dark: #000000;
JSON
{
  "hex": "#afcc31",
  "rgb": {
    "r": 175,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 71.226,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.79685,
    "c": 0.17382,
    "h": 120
  },
  "luminance": 0.52521
}

Semantic roles & 50–950 ramp

primary
#AFCC31
secondary
#3B2E73
accent
#43E462
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFCC31

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

Preview Lab → · Contrast checker → · Palette generator →

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