#AFA98B#AFA98B

#AFA98B is a light, muted yellow. Relative luminance 0.394; OKLCH L 73.2% C 0.042 H 97.9°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#AFA98B
RGBrgb(175, 169, 139)
HSLhsl(50, 18%, 62%)
HSVhsv(50, 21%, 69%)
CMYKcmyk(0%, 3.4%, 20.6%, 31.4%)
CIE-LABlab(69.01, -2.89, 16.29)
CIE-LCHlch(69.01, 16.54, 100.06°)
OKLaboklab(73.18% -0.0058 0.0417)
OKLCHoklch(73.18% 0.042 97.9)
XYZxyz(36.5272, 39.3546, 30.0931)
Luminance0.3935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA98B #8B91AF
analogous
#AF978B #AFA98B #A3AF8B
triadic
#AFA98B #8BAFA9 #A98BAF
tetradic
#AFA98B #8BAF97 #8B91AF #AF8BA3
square
#AFA98B #8BAF97 #8B91AF #AF8BA3
split-complementary
#AFA98B #8BA3AF #978BAF
monochromatic
#716C4E #968E67 #AFA98B #C8C4AF #E1DFD3

Accessibility & contrast

On white

2.37
#AFA98B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#AFA98B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA98B
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA98B#FFFFFF#000000##000000
##AFA98B1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA789
Deuteranopia (green-blind)
#B1A98C
Tritanopia (blue-blind)
#B5A5A1
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa98b;
/* rgb */ color: rgb(175, 169, 139);
/* oklch */ color: oklch(73.2% 0.042 97.9);
Tailwind
colors: {
  custom: {
    50: '#c7c2ad',
    500: '#afa98b',
    950: '#000000',
  },
}
SCSS
$custom: #afa98b;
$custom-light: #c7c2ad;
$custom-dark: #000000;
JSON
{
  "hex": "#afa98b",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 139
  },
  "hsl": {
    "h": 50,
    "s": 18.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.73181,
    "c": 0.04213,
    "h": 97.9
  },
  "luminance": 0.39354
}

Semantic roles & 50–950 ramp

primary
#AFA98B
secondary
#C4C6D2
accent
#579D49
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA98B

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

Preview Lab → · Contrast checker → · Palette generator →

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