#AF972D#AF972D

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

Color values

HEX#AF972D
RGBrgb(175, 151, 45)
HSLhsl(49, 59%, 43%)
HSVhsv(49, 74%, 69%)
CMYKcmyk(0%, 13.7%, 74.3%, 31.4%)
CIE-LABlab(62.88, -2.52, 55.83)
CIE-LCHlch(62.88, 55.89, 92.59°)
OKLaboklab(67.92% -0.0127 0.1232)
OKLCHoklch(67.92% 0.124 95.9)
XYZxyz(29.2210, 31.4382, 7.0112)
Luminance0.3144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF972D #2D45AF
analogous
#AF562D #AF972D #86AF2D
triadic
#AF972D #2DAF97 #972DAF
tetradic
#AF972D #2DAF56 #2D45AF #AF2D86
square
#AF972D #2DAF56 #2D45AF #AF2D86
split-complementary
#AF972D #2D86AF #562DAF
monochromatic
#4E4314 #7E6D20 #AF972D #D0B749 #DDCA7A

Accessibility & contrast

On white

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

On black

7.29
#AF972D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF972D
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF972D#FFFFFF#000000##000000
##AF972D1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af972d;
/* rgb */ color: rgb(175, 151, 45);
/* oklch */ color: oklch(67.9% 0.124 95.9);
Tailwind
colors: {
  custom: {
    50: '#cbb56d',
    500: '#af972d',
    950: '#000000',
  },
}
SCSS
$custom: #af972d;
$custom-light: #cbb56d;
$custom-dark: #000000;
JSON
{
  "hex": "#af972d",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 45
  },
  "hsl": {
    "h": 48.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.67915,
    "c": 0.12385,
    "h": 95.9
  },
  "luminance": 0.31437
}

Semantic roles & 50–950 ramp

primary
#AF972D
secondary
#7382C5
accent
#62E246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AF972D

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

Preview Lab → · Contrast checker → · Palette generator →

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