#AF9A2A#AF9A2A

#AF9A2A is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.5% C 0.128 H 98.1°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AF9A2A
RGBrgb(175, 154, 42)
HSLhsl(51, 61%, 43%)
HSVhsv(51, 76%, 69%)
CMYKcmyk(0%, 12%, 76%, 31.4%)
CIE-LABlab(63.67, -4.27, 57.69)
CIE-LCHlch(63.67, 57.85, 94.24°)
OKLaboklab(68.54% -0.018 0.1266)
OKLCHoklch(68.54% 0.128 98.1)
XYZxyz(29.6542, 32.3939, 6.8807)
Luminance0.3239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A2A #2A3FAF
analogous
#AF572A #AF9A2A #82AF2A
triadic
#AF9A2A #2AAF9A #9A2AAF
tetradic
#AF9A2A #2AAF57 #2A3FAF #AF2A82
square
#AF9A2A #2AAF57 #2A3FAF #AF2A82
split-complementary
#AF9A2A #2A82AF #572AAF
monochromatic
#4C4312 #7E6F1E #AF9A2A #D2BC44 #DECD75

Accessibility & contrast

On white

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

On black

7.48
#AF9A2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A2A
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A2A#FFFFFF#000000##000000
##AF9A2A1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9a2a;
/* rgb */ color: rgb(175, 154, 42);
/* oklch */ color: oklch(68.5% 0.128 98.1);
Tailwind
colors: {
  custom: {
    50: '#cbb76c',
    500: '#af9a2a',
    950: '#000000',
  },
}
SCSS
$custom: #af9a2a;
$custom-light: #cbb76c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a2a",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 42
  },
  "hsl": {
    "h": 50.526,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.68536,
    "c": 0.12784,
    "h": 98.1
  },
  "luminance": 0.32392
}

Semantic roles & 50–950 ramp

primary
#AF9A2A
secondary
#6F7DC6
accent
#5DE443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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