#AFCA47#AFCA47

#AFCA47 is a light, vivid yellow-green. Relative luminance 0.518; OKLCH L 79.4% C 0.158 H 120.1°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#AFCA47
RGBrgb(175, 202, 71)
HSLhsl(72, 55%, 54%)
HSVhsv(72, 65%, 79%)
CMYKcmyk(13.4%, 0%, 64.9%, 20.8%)
CIE-LABlab(77.17, -27.08, 60.03)
CIE-LCHlch(77.17, 65.86, 114.28°)
OKLaboklab(79.39% -0.0791 0.1364)
OKLCHoklch(79.39% 0.158 120.1)
XYZxyz(39.9377, 51.8101, 13.8564)
Luminance0.5181 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCA47 #6247CA
analogous
#CAA347 #AFCA47 #6DCA47
triadic
#AFCA47 #47AFCA #CA47AF
tetradic
#AFCA47 #47CAA3 #6247CA #CA476D
square
#AFCA47 #47CAA3 #6247CA #CA476D
split-complementary
#AFCA47 #476DCA #A347CA
monochromatic
#647522 #8CA42F #AFCA47 #C4D877 #D8E5A6

Accessibility & contrast

On white

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

On black

11.36
#AFCA47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCA47
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCA47#FFFFFF#000000##000000
##AFCA471.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF35
Deuteranopia (green-blind)
#D3BF51
Tritanopia (blue-blind)
#B8C0AF
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afca47;
/* rgb */ color: rgb(175, 202, 71);
/* oklch */ color: oklch(79.4% 0.158 120.1);
Tailwind
colors: {
  custom: {
    50: '#cada81',
    500: '#afca47',
    950: '#000000',
  },
}
SCSS
$custom: #afca47;
$custom-light: #cada81;
$custom-dark: #000000;
JSON
{
  "hex": "#afca47",
  "rgb": {
    "r": 175,
    "g": 202,
    "b": 71
  },
  "hsl": {
    "h": 72.366,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.79387,
    "c": 0.15764,
    "h": 120.1
  },
  "luminance": 0.5181
}

Semantic roles & 50–950 ramp

primary
#AFCA47
secondary
#46387E
accent
#49DF68
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140B
muted
#83837E

Preview Lab

Preview with #AFCA47

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

Preview Lab → · Contrast checker → · Palette generator →

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