#AF9A22#AF9A22

#AF9A22 is a light, vivid yellow. Relative luminance 0.323; OKLCH L 68.5% C 0.132 H 98.5°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AF9A22
RGBrgb(175, 154, 34)
HSLhsl(51, 67%, 41%)
HSVhsv(51, 81%, 69%)
CMYKcmyk(0%, 12%, 80.6%, 31.4%)
CIE-LABlab(63.62, -4.58, 60.34)
CIE-LCHlch(63.62, 60.51, 94.34°)
OKLaboklab(68.49% -0.0196 0.1306)
OKLCHoklch(68.49% 0.132 98.5)
XYZxyz(29.5251, 32.3422, 6.2006)
Luminance0.3234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A22 #2237AF
analogous
#AF5322 #AF9A22 #7DAF22
triadic
#AF9A22 #22AF9A #9A22AF
tetradic
#AF9A22 #22AF53 #2237AF #AF227D
square
#AF9A22 #22AF53 #2237AF #AF227D
split-complementary
#AF9A22 #227DAF #5322AF
monochromatic
#49400E #7C6D18 #AF9A22 #D8C036 #E2D069

Accessibility & contrast

On white

2.81
#AF9A22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AF9A22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A22
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A22#FFFFFF#000000##000000
##AF9A221.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#B09D2B
Tritanopia (blue-blind)
#BD8E84
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a22;
/* rgb */ color: rgb(175, 154, 34);
/* oklch */ color: oklch(68.5% 0.132 98.5);
Tailwind
colors: {
  custom: {
    50: '#cbb769',
    500: '#af9a22',
    950: '#000000',
  },
}
SCSS
$custom: #af9a22;
$custom-light: #cbb769;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a22",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 34
  },
  "hsl": {
    "h": 51.064,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.68489,
    "c": 0.13208,
    "h": 98.5
  },
  "luminance": 0.32341
}

Semantic roles & 50–950 ramp

primary
#AF9A22
secondary
#6574C8
accent
#57EA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A22

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

Preview Lab → · Contrast checker → · Palette generator →

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