#AF9521#AF9521

#AF9521 is a light, vivid yellow. Relative luminance 0.307; OKLCH L 67.4% C 0.129 H 95.4°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#AF9521
RGBrgb(175, 149, 33)
HSLhsl(49, 68%, 41%)
HSVhsv(49, 81%, 69%)
CMYKcmyk(0%, 14.9%, 81.1%, 31.4%)
CIE-LABlab(62.27, -1.92, 59.45)
CIE-LCHlch(62.27, 59.49, 91.85°)
OKLaboklab(67.42% -0.0122 0.1285)
OKLCHoklch(67.42% 0.129 95.4)
XYZxyz(28.7028, 30.7203, 5.8563)
Luminance0.3072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9521 #213BAF
analogous
#AF4E21 #AF9521 #82AF21
triadic
#AF9521 #21AF95 #9521AF
tetradic
#AF9521 #21AF4E #213BAF #AF2182
square
#AF9521 #21AF4E #213BAF #AF2182
split-complementary
#AF9521 #2182AF #4E21AF
monochromatic
#483D0E #7C6917 #AF9521 #D9BB34 #E3CC68

Accessibility & contrast

On white

2.94
#AF9521 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#AF9521 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9521
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9521#FFFFFF#000000##000000
##AF95211.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59200
Deuteranopia (green-blind)
#AC9A29
Tritanopia (blue-blind)
#BE8980
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af9521;
/* rgb */ color: rgb(175, 149, 33);
/* oklch */ color: oklch(67.4% 0.129 95.4);
Tailwind
colors: {
  custom: {
    50: '#cbb367',
    500: '#af9521',
    950: '#000000',
  },
}
SCSS
$custom: #af9521;
$custom-light: #cbb367;
$custom-dark: #000000;
JSON
{
  "hex": "#af9521",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 33
  },
  "hsl": {
    "h": 49.014,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.67415,
    "c": 0.12907,
    "h": 95.4
  },
  "luminance": 0.30719
}

Semantic roles & 50–950 ramp

primary
#AF9521
secondary
#6476C8
accent
#5DEB3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9521

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

Preview Lab → · Contrast checker → · Palette generator →

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