#AFC22D#AFC22D

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

Color values

HEX#AFC22D
RGBrgb(175, 194, 45)
HSLhsl(68, 62%, 47%)
HSVhsv(68, 77%, 76%)
CMYKcmyk(9.8%, 0%, 76.8%, 23.9%)
CIE-LABlab(74.75, -24.64, 66.99)
CIE-LCHlch(74.75, 71.37, 110.19°)
OKLaboklab(77.39% -0.0746 0.1469)
OKLCHoklch(77.39% 0.165 116.9)
XYZxyz(37.4456, 47.8875, 9.7527)
Luminance0.4789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC22D #402DC2
analogous
#C28B2D #AFC22D #65C22D
triadic
#AFC22D #2DAFC2 #C22DAF
tetradic
#AFC22D #2DC28B #402DC2 #C22D65
square
#AFC22D #2DC28B #402DC2 #C22D65
split-complementary
#AFC22D #2D65C2 #8B2DC2
monochromatic
#555F16 #829021 #AFC22D #C7D755 #D7E386

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC22D#FFFFFF#000000##000000
##AFC22D1.001.9910.5810.58
#FFFFFF1.991.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afc22d;
/* rgb */ color: rgb(175, 194, 45);
/* oklch */ color: oklch(77.4% 0.165 116.9);
Tailwind
colors: {
  custom: {
    50: '#cbd472',
    500: '#afc22d',
    950: '#000000',
  },
}
SCSS
$custom: #afc22d;
$custom-light: #cbd472;
$custom-dark: #000000;
JSON
{
  "hex": "#afc22d",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 45
  },
  "hsl": {
    "h": 67.651,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.77394,
    "c": 0.16472,
    "h": 116.9
  },
  "luminance": 0.47887
}

Semantic roles & 50–950 ramp

primary
#AFC22D
secondary
#887ECD
accent
#42E557
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC22D

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

Preview Lab → · Contrast checker → · Palette generator →

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