#AF9D29#AF9D29

#AF9D29 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.2% C 0.131 H 100.0°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF9D29
RGBrgb(175, 157, 41)
HSLhsl(52, 62%, 42%)
HSVhsv(52, 77%, 69%)
CMYKcmyk(0%, 10.3%, 76.6%, 31.4%)
CIE-LABlab(64.48, -5.92, 58.80)
CIE-LCHlch(64.48, 59.10, 95.75°)
OKLaboklab(69.18% -0.0227 0.1287)
OKLCHoklch(69.18% 0.131 100)
XYZxyz(30.1379, 33.3895, 6.9547)
Luminance0.3339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D29 #293BAF
analogous
#AF5A29 #AF9D29 #7EAF29
triadic
#AF9D29 #29AF9D #9D29AF
tetradic
#AF9D29 #29AF5A #293BAF #AF297E
square
#AF9D29 #29AF5A #293BAF #AF297E
split-complementary
#AF9D29 #297EAF #5A29AF
monochromatic
#4C4412 #7D711D #AF9D29 #D3BF42 #DED074

Accessibility & contrast

On white

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

On black

7.68
#AF9D29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9D29
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9D29#FFFFFF#000000##000000
##AF9D291.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9911
Deuteranopia (green-blind)
#B29F31
Tritanopia (blue-blind)
#BD9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9d29;
/* rgb */ color: rgb(175, 157, 41);
/* oklch */ color: oklch(69.2% 0.131 100.0);
Tailwind
colors: {
  custom: {
    50: '#cbb96c',
    500: '#af9d29',
    950: '#000000',
  },
}
SCSS
$custom: #af9d29;
$custom-light: #cbb96c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d29",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 41
  },
  "hsl": {
    "h": 51.94,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.69175,
    "c": 0.13072,
    "h": 100
  },
  "luminance": 0.33388
}

Semantic roles & 50–950 ramp

primary
#AF9D29
secondary
#6E7AC6
accent
#59E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9D29

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

Preview Lab → · Contrast checker → · Palette generator →

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