#AF9D22#AF9D22

#AF9D22 is a light, vivid yellow. Relative luminance 0.333; OKLCH L 69.1% C 0.134 H 100.4°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#AF9D22
RGBrgb(175, 157, 34)
HSLhsl(52, 67%, 41%)
HSVhsv(52, 81%, 69%)
CMYKcmyk(0%, 10.3%, 80.6%, 31.4%)
CIE-LABlab(64.44, -6.19, 61.06)
CIE-LCHlch(64.44, 61.37, 95.79°)
OKLaboklab(69.14% -0.0241 0.1322)
OKLCHoklch(69.14% 0.134 100.4)
XYZxyz(30.0264, 33.3449, 6.3677)
Luminance0.3334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D22 #2234AF
analogous
#AF5622 #AF9D22 #7AAF22
triadic
#AF9D22 #22AF9D #9D22AF
tetradic
#AF9D22 #22AF56 #2234AF #AF227A
square
#AF9D22 #22AF56 #2234AF #AF227A
split-complementary
#AF9D22 #227AAF #5622AF
monochromatic
#49410E #7C6F18 #AF9D22 #D8C336 #E2D369

Accessibility & contrast

On white

2.74
#AF9D22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AF9D22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D22
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D22#FFFFFF#000000##000000
##AF9D221.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9800
Deuteranopia (green-blind)
#B29F2C
Tritanopia (blue-blind)
#BD9186
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d22;
/* rgb */ color: rgb(175, 157, 34);
/* oklch */ color: oklch(69.1% 0.134 100.4);
Tailwind
colors: {
  custom: {
    50: '#cbb969',
    500: '#af9d22',
    950: '#000000',
  },
}
SCSS
$custom: #af9d22;
$custom-light: #cbb969;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d22",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 34
  },
  "hsl": {
    "h": 52.34,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.69135,
    "c": 0.13435,
    "h": 100.4
  },
  "luminance": 0.33343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9D22

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

Preview Lab → · Contrast checker → · Palette generator →

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