#AFC21F#AFC21F

#AFC21F is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.3% C 0.171 H 116.8°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#AFC21F
RGBrgb(175, 194, 31)
HSLhsl(67, 72%, 44%)
HSVhsv(67, 84%, 76%)
CMYKcmyk(9.8%, 0%, 84%, 23.9%)
CIE-LABlab(74.70, -25.13, 70.69)
CIE-LCHlch(74.70, 75.03, 109.57°)
OKLaboklab(77.33% -0.0769 0.1524)
OKLCHoklch(77.33% 0.171 116.8)
XYZxyz(37.2193, 47.7970, 8.5611)
Luminance0.4780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC21F #321FC2
analogous
#C2841F #AFC21F #5EC21F
triadic
#AFC21F #1FAFC2 #C21FAF
tetradic
#AFC21F #1FC284 #321FC2 #C21F5E
square
#AFC21F #1FC284 #321FC2 #C21F5E
split-complementary
#AFC21F #1F5EC2 #841FC2
monochromatic
#50580E #7F8D17 #AFC21F #CDE03E #DBE973

Accessibility & contrast

On white

1.99
#AFC21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.56
#AFC21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC21F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC21F#FFFFFF#000000##000000
##AFC21F1.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#CEB932
Tritanopia (blue-blind)
#BBB6A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc21f;
/* rgb */ color: rgb(175, 194, 31);
/* oklch */ color: oklch(77.3% 0.171 116.8);
Tailwind
colors: {
  custom: {
    50: '#cbd46d',
    500: '#afc21f',
    950: '#000000',
  },
}
SCSS
$custom: #afc21f;
$custom-light: #cbd46d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc21f",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 66.994,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.7733,
    "c": 0.17075,
    "h": 116.8
  },
  "luminance": 0.47796
}

Semantic roles & 50–950 ramp

primary
#AFC21F
secondary
#796DCF
accent
#39EF4E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #AFC21F

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

Preview Lab → · Contrast checker → · Palette generator →

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