#AFC42F#AFC42F

#AFC42F is a light, vivid yellow. Relative luminance 0.488; OKLCH L 77.9% C 0.166 H 117.6°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#AFC42F
RGBrgb(175, 196, 47)
HSLhsl(68, 61%, 48%)
HSVhsv(68, 76%, 77%)
CMYKcmyk(10.7%, 0%, 76%, 23.1%)
CIE-LABlab(75.33, -25.52, 66.90)
CIE-LCHlch(75.33, 71.60, 110.88°)
OKLaboklab(77.86% -0.0769 0.147)
OKLCHoklch(77.86% 0.166 117.6)
XYZxyz(37.9331, 48.7995, 10.1097)
Luminance0.4880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC42F #442FC4
analogous
#C48E2F #AFC42F #65C42F
triadic
#AFC42F #2FAFC4 #C42FAF
tetradic
#AFC42F #2FC48E #442FC4 #C42F65
square
#AFC42F #2FC48E #442FC4 #C42F65
split-complementary
#AFC42F #2F65C4 #8E2FC4
monochromatic
#576117 #839323 #AFC42F #C5D759 #D7E38A

Accessibility & contrast

On white

1.95
#AFC42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#AFC42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC42F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC42F#FFFFFF#000000##000000
##AFC42F1.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B906
Deuteranopia (green-blind)
#CFBA3D
Tritanopia (blue-blind)
#BAB9A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc42f;
/* rgb */ color: rgb(175, 196, 47);
/* oklch */ color: oklch(77.9% 0.166 117.6);
Tailwind
colors: {
  custom: {
    50: '#cbd574',
    500: '#afc42f',
    950: '#000000',
  },
}
SCSS
$custom: #afc42f;
$custom-light: #cbd574;
$custom-dark: #000000;
JSON
{
  "hex": "#afc42f",
  "rgb": {
    "r": 175,
    "g": 196,
    "b": 47
  },
  "hsl": {
    "h": 68.456,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.77858,
    "c": 0.1659,
    "h": 117.6
  },
  "luminance": 0.48799
}

Semantic roles & 50–950 ramp

primary
#AFC42F
secondary
#8C82CD
accent
#43E45A
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC42F

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

Preview Lab → · Contrast checker → · Palette generator →

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