#AF9222#AF9222

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

Color values

HEX#AF9222
RGBrgb(175, 146, 34)
HSLhsl(48, 67%, 41%)
HSVhsv(48, 81%, 69%)
CMYKcmyk(0%, 16.6%, 80.6%, 31.4%)
CIE-LABlab(61.47, -0.26, 58.43)
CIE-LCHlch(61.47, 58.43, 90.25°)
OKLaboklab(66.79% -0.0074 0.1265)
OKLCHoklch(66.79% 0.127 93.3)
XYZxyz(28.2484, 29.7889, 5.7750)
Luminance0.2979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9222 #223FAF
analogous
#AF4C22 #AF9222 #85AF22
triadic
#AF9222 #22AF92 #9222AF
tetradic
#AF9222 #22AF4C #223FAF #AF2285
square
#AF9222 #22AF4C #223FAF #AF2285
split-complementary
#AF9222 #2285AF #4C22AF
monochromatic
#493C0E #7C6718 #AF9222 #D8B736 #E2C969

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9222#FFFFFF#000000##000000
##AF92221.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)
#A38F04
Deuteranopia (green-blind)
#AA982A
Tritanopia (blue-blind)
#BE857D
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9222;
/* rgb */ color: rgb(175, 146, 34);
/* oklch */ color: oklch(66.8% 0.127 93.3);
Tailwind
colors: {
  custom: {
    50: '#cbb168',
    500: '#af9222',
    950: '#000000',
  },
}
SCSS
$custom: #af9222;
$custom-light: #cbb168;
$custom-dark: #000000;
JSON
{
  "hex": "#af9222",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 47.66,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.66785,
    "c": 0.12669,
    "h": 93.3
  },
  "luminance": 0.29787
}

Semantic roles & 50–950 ramp

primary
#AF9222
secondary
#6579C8
accent
#61EA3D
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9222

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

Preview Lab → · Contrast checker → · Palette generator →

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