#AF9221#AF9221

#AF9221 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.8% C 0.127 H 93.4°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#AF9221
RGBrgb(175, 146, 33)
HSLhsl(48, 68%, 41%)
HSVhsv(48, 81%, 69%)
CMYKcmyk(0%, 16.6%, 81.1%, 31.4%)
CIE-LABlab(61.47, -0.29, 58.75)
CIE-LCHlch(61.47, 58.75, 90.28°)
OKLaboklab(66.78% -0.0076 0.127)
OKLCHoklch(66.78% 0.127 93.4)
XYZxyz(28.2342, 29.7832, 5.7002)
Luminance0.2978 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9221 #213EAF
analogous
#AF4B21 #AF9221 #85AF21
triadic
#AF9221 #21AF92 #9221AF
tetradic
#AF9221 #21AF4B #213EAF #AF2185
square
#AF9221 #21AF4B #213EAF #AF2185
split-complementary
#AF9221 #2185AF #4B21AF
monochromatic
#483C0E #7C6717 #AF9221 #D9B734 #E3C968

Accessibility & contrast

On white

3.02
#AF9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#AF9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9221
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9221#FFFFFF#000000##000000
##AF92211.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F02
Deuteranopia (green-blind)
#AA9829
Tritanopia (blue-blind)
#BE857D
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9221;
/* rgb */ color: rgb(175, 146, 33);
/* oklch */ color: oklch(66.8% 0.127 93.4);
Tailwind
colors: {
  custom: {
    50: '#cbb167',
    500: '#af9221',
    950: '#000000',
  },
}
SCSS
$custom: #af9221;
$custom-light: #cbb167;
$custom-dark: #000000;
JSON
{
  "hex": "#af9221",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 47.746,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.6678,
    "c": 0.12718,
    "h": 93.4
  },
  "luminance": 0.29782
}

Semantic roles & 50–950 ramp

primary
#AF9221
secondary
#6478C8
accent
#60EB3D
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF9221

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

Preview Lab → · Contrast checker → · Palette generator →

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