#AF9C22#AF9C22

#AF9C22 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.9% C 0.134 H 99.8°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AF9C22
RGBrgb(175, 156, 34)
HSLhsl(52, 67%, 41%)
HSVhsv(52, 81%, 69%)
CMYKcmyk(0%, 10.9%, 80.6%, 31.4%)
CIE-LABlab(64.17, -5.65, 60.82)
CIE-LCHlch(64.17, 61.08, 95.31°)
OKLaboklab(68.92% -0.0226 0.1316)
OKLCHoklch(68.92% 0.134 99.8)
XYZxyz(29.8579, 33.0079, 6.3115)
Luminance0.3301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C22 #2235AF
analogous
#AF5522 #AF9C22 #7BAF22
triadic
#AF9C22 #22AF9C #9C22AF
tetradic
#AF9C22 #22AF55 #2235AF #AF227B
square
#AF9C22 #22AF55 #2235AF #AF227B
split-complementary
#AF9C22 #227BAF #5522AF
monochromatic
#49410E #7C6E18 #AF9C22 #D8C236 #E2D269

Accessibility & contrast

On white

2.76
#AF9C22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AF9C22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C22
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C22#FFFFFF#000000##000000
##AF9C221.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9800
Deuteranopia (green-blind)
#B19F2C
Tritanopia (blue-blind)
#BD9086
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9c22;
/* rgb */ color: rgb(175, 156, 34);
/* oklch */ color: oklch(68.9% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#cbb869',
    500: '#af9c22',
    950: '#000000',
  },
}
SCSS
$custom: #af9c22;
$custom-light: #cbb869;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c22",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 34
  },
  "hsl": {
    "h": 51.915,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.68919,
    "c": 0.13357,
    "h": 99.8
  },
  "luminance": 0.33006
}

Semantic roles & 50–950 ramp

primary
#AF9C22
secondary
#6572C8
accent
#55EA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9C22

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

Preview Lab → · Contrast checker → · Palette generator →

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