#AF972A#AF972A

#AF972A is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.9% C 0.126 H 96.1°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AF972A
RGBrgb(175, 151, 42)
HSLhsl(49, 61%, 43%)
HSVhsv(49, 76%, 69%)
CMYKcmyk(0%, 13.7%, 76%, 31.4%)
CIE-LABlab(62.86, -2.66, 56.93)
CIE-LCHlch(62.86, 56.99, 92.67°)
OKLaboklab(67.9% -0.0134 0.1249)
OKLCHoklch(67.9% 0.126 96.1)
XYZxyz(29.1653, 31.4159, 6.7177)
Luminance0.3141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF972A #2A42AF
analogous
#AF552A #AF972A #84AF2A
triadic
#AF972A #2AAF97 #972AAF
tetradic
#AF972A #2AAF55 #2A42AF #AF2A84
square
#AF972A #2AAF55 #2A42AF #AF2A84
split-complementary
#AF972A #2A84AF #552AAF
monochromatic
#4C4212 #7E6C1E #AF972A #D2B844 #DECB75

Accessibility & contrast

On white

2.88
#AF972A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AF972A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF972A
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF972A#FFFFFF#000000##000000
##AF972A1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79416
Deuteranopia (green-blind)
#AD9B31
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af972a;
/* rgb */ color: rgb(175, 151, 42);
/* oklch */ color: oklch(67.9% 0.126 96.1);
Tailwind
colors: {
  custom: {
    50: '#cbb56c',
    500: '#af972a',
    950: '#000000',
  },
}
SCSS
$custom: #af972a;
$custom-light: #cbb56c;
$custom-dark: #000000;
JSON
{
  "hex": "#af972a",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 42
  },
  "hsl": {
    "h": 49.173,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.67895,
    "c": 0.12566,
    "h": 96.1
  },
  "luminance": 0.31414
}

Semantic roles & 50–950 ramp

primary
#AF972A
secondary
#6F7FC6
accent
#60E443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF972A

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

Preview Lab → · Contrast checker → · Palette generator →

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