#AFA522#AFA522

#AFA522 is a light, vivid yellow. Relative luminance 0.361; OKLCH L 70.9% C 0.141 H 104.8°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#AFA522
RGBrgb(175, 165, 34)
HSLhsl(56, 67%, 41%)
HSVhsv(56, 81%, 69%)
CMYKcmyk(0%, 5.7%, 80.6%, 31.4%)
CIE-LABlab(66.63, -10.42, 62.98)
CIE-LCHlch(66.63, 63.84, 99.39°)
OKLaboklab(70.88% -0.036 0.1363)
OKLCHoklch(70.88% 0.141 104.8)
XYZxyz(31.4245, 36.1410, 6.8337)
Luminance0.3614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA522 #222CAF
analogous
#AF5E22 #AFA522 #72AF22
triadic
#AFA522 #22AFA5 #A522AF
tetradic
#AFA522 #22AF5E #222CAF #AF2272
square
#AFA522 #22AF5E #222CAF #AF2272
split-complementary
#AFA522 #2272AF #5E22AF
monochromatic
#49440E #7C7518 #AFA522 #D8CD36 #E2D969

Accessibility & contrast

On white

2.55
#AFA522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#AFA522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA522
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA522#FFFFFF#000000##000000
##AFA5221.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B8A52D
Tritanopia (blue-blind)
#BD998D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa522;
/* rgb */ color: rgb(175, 165, 34);
/* oklch */ color: oklch(70.9% 0.141 104.8);
Tailwind
colors: {
  custom: {
    50: '#cbbf6a',
    500: '#afa522',
    950: '#000000',
  },
}
SCSS
$custom: #afa522;
$custom-light: #cbbf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa522",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 55.745,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.70875,
    "c": 0.14098,
    "h": 104.8
  },
  "luminance": 0.3614
}

Semantic roles & 50–950 ramp

primary
#AFA522
secondary
#656CC8
accent
#4AEA3D
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA522

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

Preview Lab → · Contrast checker → · Palette generator →

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