#AFCF40#AFCF40

#AFCF40 is a light, vivid yellow-green. Relative luminance 0.541; OKLCH L 80.5% C 0.169 H 121.3°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#AFCF40
RGBrgb(175, 207, 64)
HSLhsl(73, 60%, 53%)
HSVhsv(73, 69%, 81%)
CMYKcmyk(15.5%, 0%, 69.1%, 18.8%)
CIE-LABlab(78.53, -29.90, 64.15)
CIE-LCHlch(78.53, 70.77, 114.99°)
OKLaboklab(80.47% -0.0875 0.144)
OKLCHoklch(80.47% 0.169 121.3)
XYZxyz(40.9180, 54.1098, 13.1381)
Luminance0.5411 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF40 #6040CF
analogous
#CFA840 #AFCF40 #67CF40
triadic
#AFCF40 #40AFCF #CF40AF
tetradic
#AFCF40 #40CFA8 #6040CF #CF4067
square
#AFCF40 #40CFA8 #6040CF #CF4067
split-complementary
#AFCF40 #4067CF #A840CF
monochromatic
#63771E #8CA82A #AFCF40 #C3DB71 #D8E8A2

Accessibility & contrast

On white

1.78
#AFCF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#AFCF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF40
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF40#FFFFFF#000000##000000
##AFCF401.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC329
Deuteranopia (green-blind)
#D7C24C
Tritanopia (blue-blind)
#B8C4B3
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #afcf40;
/* rgb */ color: rgb(175, 207, 64);
/* oklch */ color: oklch(80.5% 0.169 121.3);
Tailwind
colors: {
  custom: {
    50: '#cadd7d',
    500: '#afcf40',
    950: '#000000',
  },
}
SCSS
$custom: #afcf40;
$custom-light: #cadd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf40",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 64
  },
  "hsl": {
    "h": 73.427,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.80466,
    "c": 0.1685,
    "h": 121.3
  },
  "luminance": 0.5411
}

Semantic roles & 50–950 ramp

primary
#AFCF40
secondary
#45347F
accent
#45E368
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCF40

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

Preview Lab → · Contrast checker → · Palette generator →

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