#AFC22F#AFC22F

#AFC22F is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.4% C 0.164 H 117.0°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#AFC22F
RGBrgb(175, 194, 47)
HSLhsl(68, 61%, 47%)
HSVhsv(68, 76%, 76%)
CMYKcmyk(9.8%, 0%, 75.8%, 23.9%)
CIE-LABlab(74.76, -24.55, 66.37)
CIE-LCHlch(74.76, 70.77, 110.30°)
OKLaboklab(77.41% -0.0742 0.1459)
OKLCHoklch(77.41% 0.164 117)
XYZxyz(37.4850, 47.9032, 9.9603)
Luminance0.4790 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC22F #422FC2
analogous
#C28C2F #AFC22F #66C22F
triadic
#AFC22F #2FAFC2 #C22FAF
tetradic
#AFC22F #2FC28C #422FC2 #C22F66
square
#AFC22F #2FC28C #422FC2 #C22F66
split-complementary
#AFC22F #2F66C2 #8C2FC2
monochromatic
#565F17 #839123 #AFC22F #C6D658 #D7E289

Accessibility & contrast

On white

1.98
#AFC22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#AFC22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC22F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC22F#FFFFFF#000000##000000
##AFC22F1.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB708
Deuteranopia (green-blind)
#CEB93C
Tritanopia (blue-blind)
#BAB7A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc22f;
/* rgb */ color: rgb(175, 194, 47);
/* oklch */ color: oklch(77.4% 0.164 117.0);
Tailwind
colors: {
  custom: {
    50: '#cbd473',
    500: '#afc22f',
    950: '#000000',
  },
}
SCSS
$custom: #afc22f;
$custom-light: #cbd473;
$custom-dark: #000000;
JSON
{
  "hex": "#afc22f",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 47
  },
  "hsl": {
    "h": 67.755,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.77405,
    "c": 0.1637,
    "h": 117
  },
  "luminance": 0.47903
}

Semantic roles & 50–950 ramp

primary
#AFC22F
secondary
#8A81CC
accent
#44E458
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC22F

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

Preview Lab → · Contrast checker → · Palette generator →

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