#AFCD40#AFCD40

#AFCD40 is a light, vivid yellow-green. Relative luminance 0.531; OKLCH L 80.0% C 0.166 H 120.7°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#AFCD40
RGBrgb(175, 205, 64)
HSLhsl(73, 59%, 53%)
HSVhsv(73, 69%, 80%)
CMYKcmyk(14.6%, 0%, 68.8%, 19.6%)
CIE-LABlab(77.96, -28.95, 63.58)
CIE-LCHlch(77.96, 69.86, 114.49°)
OKLaboklab(80.01% -0.0849 0.1428)
OKLCHoklch(80.01% 0.166 120.7)
XYZxyz(40.4366, 53.1468, 12.9776)
Luminance0.5315 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCD40 #5E40CD
analogous
#CDA440 #AFCD40 #68CD40
triadic
#AFCD40 #40AFCD #CD40AF
tetradic
#AFCD40 #40CDA4 #5E40CD #CD4068
square
#AFCD40 #40CDA4 #5E40CD #CD4068
split-complementary
#AFCD40 #4068CD #A440CD
monochromatic
#62741E #8BA52B #AFCD40 #C3DA71 #D8E6A1

Accessibility & contrast

On white

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

On black

11.63
#AFCD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCD40
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCD40#FFFFFF#000000##000000
##AFCD401.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12A
Deuteranopia (green-blind)
#D6C14B
Tritanopia (blue-blind)
#B8C2B1
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #afcd40;
/* rgb */ color: rgb(175, 205, 64);
/* oklch */ color: oklch(80.0% 0.166 120.7);
Tailwind
colors: {
  custom: {
    50: '#cadc7d',
    500: '#afcd40',
    950: '#000000',
  },
}
SCSS
$custom: #afcd40;
$custom-light: #cadc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afcd40",
  "rgb": {
    "r": 175,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 72.766,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80011,
    "c": 0.16613,
    "h": 120.7
  },
  "luminance": 0.53147
}

Semantic roles & 50–950 ramp

primary
#AFCD40
secondary
#44347D
accent
#46E267
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCD40

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

Preview Lab → · Contrast checker → · Palette generator →

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