#AFCF42#AFCF42

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

Color values

HEX#AFCF42
RGBrgb(175, 207, 66)
HSLhsl(74, 59%, 54%)
HSVhsv(74, 68%, 81%)
CMYKcmyk(15.5%, 0%, 68.1%, 18.8%)
CIE-LABlab(78.54, -29.78, 63.41)
CIE-LCHlch(78.54, 70.05, 115.16°)
OKLaboklab(80.48% -0.087 0.1427)
OKLCHoklch(80.48% 0.167 121.4)
XYZxyz(40.9760, 54.1330, 13.4432)
Luminance0.5413 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF42 #6242CF
analogous
#CFA842 #AFCF42 #68CF42
triadic
#AFCF42 #42AFCF #CF42AF
tetradic
#AFCF42 #42CFA8 #6242CF #CF4268
square
#AFCF42 #42CFA8 #6242CF #CF4268
split-complementary
#AFCF42 #4268CF #A842CF
monochromatic
#64781F #8CA92B #AFCF42 #C4DB73 #D8E8A4

Accessibility & contrast

On white

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

On black

11.83
#AFCF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF42
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF42#FFFFFF#000000##000000
##AFCF421.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32C
Deuteranopia (green-blind)
#D7C24D
Tritanopia (blue-blind)
#B8C5B3
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #afcf42;
/* rgb */ color: rgb(175, 207, 66);
/* oklch */ color: oklch(80.5% 0.167 121.4);
Tailwind
colors: {
  custom: {
    50: '#cadd7e',
    500: '#afcf42',
    950: '#000000',
  },
}
SCSS
$custom: #afcf42;
$custom-light: #cadd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf42",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 73.617,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.80481,
    "c": 0.16718,
    "h": 121.4
  },
  "luminance": 0.54133
}

Semantic roles & 50–950 ramp

primary
#AFCF42
secondary
#463580
accent
#45E369
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCF42

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

Preview Lab → · Contrast checker → · Palette generator →

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