#AF972B#AF972B

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

Color values

HEX#AF972B
RGBrgb(175, 151, 43)
HSLhsl(49, 61%, 43%)
HSVhsv(49, 75%, 69%)
CMYKcmyk(0%, 13.7%, 75.4%, 31.4%)
CIE-LABlab(62.86, -2.61, 56.57)
CIE-LCHlch(62.86, 56.63, 92.64°)
OKLaboklab(67.9% -0.0132 0.1244)
OKLCHoklch(67.9% 0.125 96)
XYZxyz(29.1834, 31.4232, 6.8132)
Luminance0.3142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF972B #2B43AF
analogous
#AF552B #AF972B #85AF2B
triadic
#AF972B #2BAF97 #972BAF
tetradic
#AF972B #2BAF55 #2B43AF #AF2B85
square
#AF972B #2BAF55 #2B43AF #AF2B85
split-complementary
#AF972B #2B85AF #552BAF
monochromatic
#4D4213 #7E6D1F #AF972B #D1B846 #DECB77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF972B#FFFFFF#000000##000000
##AF972B1.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)
#A79418
Deuteranopia (green-blind)
#AD9B32
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af972b;
/* rgb */ color: rgb(175, 151, 43);
/* oklch */ color: oklch(67.9% 0.125 96.0);
Tailwind
colors: {
  custom: {
    50: '#cbb56c',
    500: '#af972b',
    950: '#000000',
  },
}
SCSS
$custom: #af972b;
$custom-light: #cbb56c;
$custom-dark: #000000;
JSON
{
  "hex": "#af972b",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 43
  },
  "hsl": {
    "h": 49.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.67901,
    "c": 0.12506,
    "h": 96
  },
  "luminance": 0.31422
}

Semantic roles & 50–950 ramp

primary
#AF972B
secondary
#7080C5
accent
#61E444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF972B

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

Preview Lab → · Contrast checker → · Palette generator →

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