#AFAA22#AFAA22

#AFAA22 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.145 H 107.3°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFAA22
RGBrgb(175, 170, 34)
HSLhsl(58, 67%, 41%)
HSVhsv(58, 81%, 69%)
CMYKcmyk(0%, 2.9%, 80.6%, 31.4%)
CIE-LABlab(68.01, -13.02, 64.19)
CIE-LCHlch(68.01, 65.49, 101.46°)
OKLaboklab(71.97% -0.0433 0.1389)
OKLCHoklch(71.97% 0.145 107.3)
XYZxyz(32.3440, 37.9801, 7.1402)
Luminance0.3798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA22 #2227AF
analogous
#AF6322 #AFAA22 #6DAF22
triadic
#AFAA22 #22AFAA #AA22AF
tetradic
#AFAA22 #22AF63 #2227AF #AF226D
square
#AFAA22 #22AF63 #2227AF #AF226D
split-complementary
#AFAA22 #226DAF #6322AF
monochromatic
#49460E #7C7818 #AFAA22 #D8D236 #E2DE69

Accessibility & contrast

On white

2.44
#AFAA22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#AFAA22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA22
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA22#FFFFFF#000000##000000
##AFAA221.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#BBA82E
Tritanopia (blue-blind)
#BC9E91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa22;
/* rgb */ color: rgb(175, 170, 34);
/* oklch */ color: oklch(72.0% 0.145 107.3);
Tailwind
colors: {
  custom: {
    50: '#cbc36b',
    500: '#afaa22',
    950: '#000000',
  },
}
SCSS
$custom: #afaa22;
$custom-light: #cbc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa22",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 34
  },
  "hsl": {
    "h": 57.872,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71973,
    "c": 0.14548,
    "h": 107.3
  },
  "luminance": 0.37979
}

Semantic roles & 50–950 ramp

primary
#AFAA22
secondary
#6569C8
accent
#44EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAA22

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

Preview Lab → · Contrast checker → · Palette generator →

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