#AFCD42#AFCD42

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

Color values

HEX#AFCD42
RGBrgb(175, 205, 66)
HSLhsl(73, 58%, 53%)
HSVhsv(73, 68%, 80%)
CMYKcmyk(14.6%, 0%, 67.8%, 19.6%)
CIE-LABlab(77.98, -28.83, 62.84)
CIE-LCHlch(77.98, 69.14, 114.65°)
OKLaboklab(80.03% -0.0844 0.1415)
OKLCHoklch(80.03% 0.165 120.8)
XYZxyz(40.4945, 53.1700, 13.2827)
Luminance0.5317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCD42 #6042CD
analogous
#CDA642 #AFCD42 #69CD42
triadic
#AFCD42 #42AFCD #CD42AF
tetradic
#AFCD42 #42CDA6 #6042CD #CD4269
square
#AFCD42 #42CDA6 #6042CD #CD4269
split-complementary
#AFCD42 #4269CD #A642CD
monochromatic
#63761F #8CA62C #AFCD42 #C3DA72 #D8E7A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFCD42#FFFFFF#000000##000000
##AFCD421.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)
#D9C12D
Deuteranopia (green-blind)
#D6C14D
Tritanopia (blue-blind)
#B8C3B1
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #afcd42;
/* rgb */ color: rgb(175, 205, 66);
/* oklch */ color: oklch(80.0% 0.165 120.8);
Tailwind
colors: {
  custom: {
    50: '#cadc7e',
    500: '#afcd42',
    950: '#000000',
  },
}
SCSS
$custom: #afcd42;
$custom-light: #cadc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afcd42",
  "rgb": {
    "r": 175,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 72.95,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.80026,
    "c": 0.16479,
    "h": 120.8
  },
  "luminance": 0.5317
}

Semantic roles & 50–950 ramp

primary
#AFCD42
secondary
#45357E
accent
#46E168
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCD42

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

Preview Lab → · Contrast checker → · Palette generator →

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