#AFA521#AFA521

#AFA521 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#AFA521
RGBrgb(175, 165, 33)
HSLhsl(56, 68%, 41%)
HSVhsv(56, 81%, 69%)
CMYKcmyk(0%, 5.7%, 81.1%, 31.4%)
CIE-LABlab(66.62, -10.45, 63.26)
CIE-LCHlch(66.62, 64.12, 99.38°)
OKLaboklab(70.87% -0.0362 0.1367)
OKLCHoklch(70.87% 0.141 104.8)
XYZxyz(31.4103, 36.1353, 6.7588)
Luminance0.3613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA521 #212BAF
analogous
#AF5E21 #AFA521 #72AF21
triadic
#AFA521 #21AFA5 #A521AF
tetradic
#AFA521 #21AF5E #212BAF #AF2172
square
#AFA521 #21AF5E #212BAF #AF2172
split-complementary
#AFA521 #2172AF #5E21AF
monochromatic
#48440E #7C7417 #AFA521 #D9CD34 #E3DA68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA521#FFFFFF#000000##000000
##AFA5211.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: #afa521;
/* rgb */ color: rgb(175, 165, 33);
/* oklch */ color: oklch(70.9% 0.141 104.8);
Tailwind
colors: {
  custom: {
    50: '#cbbf6a',
    500: '#afa521',
    950: '#000000',
  },
}
SCSS
$custom: #afa521;
$custom-light: #cbbf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa521",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 33
  },
  "hsl": {
    "h": 55.775,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.7087,
    "c": 0.14143,
    "h": 104.8
  },
  "luminance": 0.36134
}

Semantic roles & 50–950 ramp

primary
#AFA521
secondary
#646BC8
accent
#49EB3D
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA521

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

Preview Lab → · Contrast checker → · Palette generator →

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