#AFAD22#AFAD22

#AFAD22 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.6% C 0.148 H 108.7°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFAD22
RGBrgb(175, 173, 34)
HSLhsl(59, 67%, 41%)
HSVhsv(59, 81%, 69%)
CMYKcmyk(0%, 1.1%, 80.6%, 31.4%)
CIE-LABlab(68.84, -14.56, 64.91)
CIE-LCHlch(68.84, 66.52, 102.64°)
OKLaboklab(72.64% -0.0476 0.1405)
OKLCHoklch(72.64% 0.148 108.7)
XYZxyz(32.9128, 39.1177, 7.3298)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD22 #2224AF
analogous
#AF6622 #AFAD22 #6AAF22
triadic
#AFAD22 #22AFAD #AD22AF
tetradic
#AFAD22 #22AF66 #2224AF #AF226A
square
#AFAD22 #22AF66 #2224AF #AF226A
split-complementary
#AFAD22 #226AAF #6622AF
monochromatic
#49480E #7C7A18 #AFAD22 #D8D636 #E2E069

Accessibility & contrast

On white

2.38
#AFAD22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#AFAD22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD22
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD22#FFFFFF#000000##000000
##AFAD221.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BEAA2F
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad22;
/* rgb */ color: rgb(175, 173, 34);
/* oklch */ color: oklch(72.6% 0.148 108.7);
Tailwind
colors: {
  custom: {
    50: '#cbc56b',
    500: '#afad22',
    950: '#000000',
  },
}
SCSS
$custom: #afad22;
$custom-light: #cbc56b;
$custom-dark: #000000;
JSON
{
  "hex": "#afad22",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 34
  },
  "hsl": {
    "h": 59.149,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72636,
    "c": 0.1483,
    "h": 108.7
  },
  "luminance": 0.39117
}

Semantic roles & 50–950 ramp

primary
#AFAD22
secondary
#6566C8
accent
#40EA3D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAD22

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

Preview Lab → · Contrast checker → · Palette generator →

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