#AF972C#AF972C

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

Color values

HEX#AF972C
RGBrgb(175, 151, 44)
HSLhsl(49, 60%, 43%)
HSVhsv(49, 75%, 69%)
CMYKcmyk(0%, 13.7%, 74.9%, 31.4%)
CIE-LABlab(62.87, -2.57, 56.20)
CIE-LCHlch(62.87, 56.26, 92.62°)
OKLaboklab(67.91% -0.0129 0.1238)
OKLCHoklch(67.91% 0.124 96)
XYZxyz(29.2019, 31.4306, 6.9110)
Luminance0.3143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF972C #2C44AF
analogous
#AF562C #AF972C #85AF2C
triadic
#AF972C #2CAF97 #972CAF
tetradic
#AF972C #2CAF56 #2C44AF #AF2C85
square
#AF972C #2CAF56 #2C44AF #AF2C85
split-complementary
#AF972C #2C85AF #562CAF
monochromatic
#4D4313 #7E6D20 #AF972C #D1B847 #DDCB78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF972C#FFFFFF#000000##000000
##AF972C1.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)
#A79419
Deuteranopia (green-blind)
#AD9B33
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af972c;
/* rgb */ color: rgb(175, 151, 44);
/* oklch */ color: oklch(67.9% 0.124 96.0);
Tailwind
colors: {
  custom: {
    50: '#cbb56d',
    500: '#af972c',
    950: '#000000',
  },
}
SCSS
$custom: #af972c;
$custom-light: #cbb56d;
$custom-dark: #000000;
JSON
{
  "hex": "#af972c",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 44
  },
  "hsl": {
    "h": 49.008,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.67908,
    "c": 0.12446,
    "h": 96
  },
  "luminance": 0.31429
}

Semantic roles & 50–950 ramp

primary
#AF972C
secondary
#7281C5
accent
#62E345
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF972C

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

Preview Lab → · Contrast checker → · Palette generator →

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