#AF972F#AF972F

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

Color values

HEX#AF972F
RGBrgb(175, 151, 47)
HSLhsl(49, 58%, 44%)
HSVhsv(49, 73%, 69%)
CMYKcmyk(0%, 13.7%, 73.1%, 31.4%)
CIE-LABlab(62.89, -2.43, 55.07)
CIE-LCHlch(62.89, 55.12, 92.52°)
OKLaboklab(67.93% -0.0122 0.122)
OKLCHoklch(67.93% 0.123 95.7)
XYZxyz(29.2604, 31.4540, 7.2188)
Luminance0.3145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF972F #2F47AF
analogous
#AF572F #AF972F #87AF2F
triadic
#AF972F #2FAF97 #972FAF
tetradic
#AF972F #2FAF57 #2F47AF #AF2F87
square
#AF972F #2FAF57 #2F47AF #AF2F87
split-complementary
#AF972F #2F87AF #572FAF
monochromatic
#4F4415 #7F6D22 #AF972F #CFB64C #DCCA7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF972F#FFFFFF#000000##000000
##AF972F1.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)
#A7941F
Deuteranopia (green-blind)
#AD9B35
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af972f;
/* rgb */ color: rgb(175, 151, 47);
/* oklch */ color: oklch(67.9% 0.123 95.7);
Tailwind
colors: {
  custom: {
    50: '#cbb56f',
    500: '#af972f',
    950: '#000000',
  },
}
SCSS
$custom: #af972f;
$custom-light: #cbb56f;
$custom-dark: #000000;
JSON
{
  "hex": "#af972f",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 47
  },
  "hsl": {
    "h": 48.75,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.6793,
    "c": 0.12258,
    "h": 95.7
  },
  "luminance": 0.31452
}

Semantic roles & 50–950 ramp

primary
#AF972F
secondary
#7584C4
accent
#64E147
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF972F

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

Preview Lab → · Contrast checker → · Palette generator →

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