#AF9D2A#AF9D2A

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

Color values

HEX#AF9D2A
RGBrgb(175, 157, 42)
HSLhsl(52, 61%, 43%)
HSVhsv(52, 76%, 69%)
CMYKcmyk(0%, 10.3%, 76%, 31.4%)
CIE-LABlab(64.48, -5.88, 58.46)
CIE-LCHlch(64.48, 58.75, 95.74°)
OKLaboklab(69.18% -0.0225 0.1282)
OKLCHoklch(69.18% 0.13 100)
XYZxyz(30.1556, 33.3965, 7.0478)
Luminance0.3340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9D2A #2A3CAF
analogous
#AF5B2A #AF9D2A #7EAF2A
triadic
#AF9D2A #2AAF9D #9D2AAF
tetradic
#AF9D2A #2AAF5B #2A3CAF #AF2A7E
square
#AF9D2A #2AAF5B #2A3CAF #AF2A7E
split-complementary
#AF9D2A #2A7EAF #5B2AAF
monochromatic
#4C4412 #7E711E #AF9D2A #D2BF44 #DED075

Accessibility & contrast

On white

2.73
#AF9D2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9D2A#FFFFFF#000000##000000
##AF9D2A1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9d2a;
/* rgb */ color: rgb(175, 157, 42);
/* oklch */ color: oklch(69.2% 0.130 100.0);
Tailwind
colors: {
  custom: {
    50: '#cbb96d',
    500: '#af9d2a',
    950: '#000000',
  },
}
SCSS
$custom: #af9d2a;
$custom-light: #cbb96d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9d2a",
  "rgb": {
    "r": 175,
    "g": 157,
    "b": 42
  },
  "hsl": {
    "h": 51.88,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.69181,
    "c": 0.13015,
    "h": 100
  },
  "luminance": 0.33395
}

Semantic roles & 50–950 ramp

primary
#AF9D2A
secondary
#6F7BC6
accent
#59E443
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AF9D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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