#AFCA40#AFCA40

#AFCA40 is a light, vivid yellow-green. Relative luminance 0.517; OKLCH L 79.3% C 0.163 H 119.9°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#AFCA40
RGBrgb(175, 202, 64)
HSLhsl(72, 57%, 52%)
HSVhsv(72, 68%, 79%)
CMYKcmyk(13.4%, 0%, 68.3%, 20.8%)
CIE-LABlab(77.12, -27.53, 62.72)
CIE-LCHlch(77.12, 68.50, 113.70°)
OKLaboklab(79.33% -0.081 0.141)
OKLCHoklch(79.33% 0.163 119.9)
XYZxyz(39.7258, 51.7254, 12.7407)
Luminance0.5172 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCA40 #5B40CA
analogous
#CAA040 #AFCA40 #6ACA40
triadic
#AFCA40 #40AFCA #CA40AF
tetradic
#AFCA40 #40CAA0 #5B40CA #CA406A
square
#AFCA40 #40CAA0 #5B40CA #CA406A
split-complementary
#AFCA40 #406ACA #A040CA
monochromatic
#61701F #8AA02C #AFCA40 #C3D770 #D7E5A0

Accessibility & contrast

On white

1.85
#AFCA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#AFCA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCA40
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCA40#FFFFFF#000000##000000
##AFCA401.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#D3BF4B
Tritanopia (blue-blind)
#B9BFAE
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afca40;
/* rgb */ color: rgb(175, 202, 64);
/* oklch */ color: oklch(79.3% 0.163 119.9);
Tailwind
colors: {
  custom: {
    50: '#cada7d',
    500: '#afca40',
    950: '#000000',
  },
}
SCSS
$custom: #afca40;
$custom-light: #cada7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afca40",
  "rgb": {
    "r": 175,
    "g": 202,
    "b": 64
  },
  "hsl": {
    "h": 71.739,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7933,
    "c": 0.16259,
    "h": 119.9
  },
  "luminance": 0.51725
}

Semantic roles & 50–950 ramp

primary
#AFCA40
secondary
#42357A
accent
#48E066
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFCA40

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

Preview Lab → · Contrast checker → · Palette generator →

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