#AFA997#AFA997

#AFA997 is a light, muted yellow. Relative luminance 0.397; OKLCH L 73.5% C 0.026 H 91.7°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#AFA997
RGBrgb(175, 169, 151)
HSLhsl(45, 13%, 64%)
HSVhsv(45, 14%, 69%)
CMYKcmyk(0%, 3.4%, 13.7%, 31.4%)
CIE-LABlab(69.27, -0.99, 10.06)
CIE-LCHlch(69.27, 10.11, 95.62°)
OKLaboklab(73.48% -0.0008 0.0262)
OKLCHoklch(73.48% 0.026 91.7)
XYZxyz(37.4526, 39.7247, 34.9668)
Luminance0.3972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA997 #979DAF
analogous
#AF9D97 #AFA997 #A9AF97
triadic
#AFA997 #97AFA9 #A997AF
tetradic
#AFA997 #97AF9D #979DAF #AF97A9
square
#AFA997 #97AF9D #979DAF #AF97A9
split-complementary
#AFA997 #97A9AF #9D97AF
monochromatic
#736C59 #948C74 #AFA997 #CAC6BA #E4E2DC

Accessibility & contrast

On white

2.35
#AFA997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#AFA997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA997
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA997#FFFFFF#000000##000000
##AFA9971.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA896
Deuteranopia (green-blind)
#AFAA98
Tritanopia (blue-blind)
#B3A6A4
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa997;
/* rgb */ color: rgb(175, 169, 151);
/* oklch */ color: oklch(73.5% 0.026 91.7);
Tailwind
colors: {
  custom: {
    50: '#c7c2b5',
    500: '#afa997',
    950: '#000000',
  },
}
SCSS
$custom: #afa997;
$custom-light: #c7c2b5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa997",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 151
  },
  "hsl": {
    "h": 45,
    "s": 13.043,
    "l": 63.922
  },
  "oklch": {
    "l": 0.73478,
    "c": 0.02616,
    "h": 91.7
  },
  "luminance": 0.39724
}

Semantic roles & 50–950 ramp

primary
#AFA997
secondary
#CDCFD5
accent
#61974E
background
#FCFBFB
surface
#F8F7F6
border
#D1D0D0
text
#131211
muted
#828180

Preview Lab

Preview with #AFA997

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

Preview Lab → · Contrast checker → · Palette generator →

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