#AFA98F#AFA98F

#AFA98F is a light, muted yellow. Relative luminance 0.395; OKLCH L 73.3% C 0.037 H 96.4°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AFA98F
RGBrgb(175, 169, 143)
HSLhsl(49, 17%, 62%)
HSVhsv(49, 18%, 69%)
CMYKcmyk(0%, 3.4%, 18.3%, 31.4%)
CIE-LABlab(69.09, -2.27, 14.21)
CIE-LCHlch(69.09, 14.39, 99.09°)
OKLaboklab(73.28% -0.0041 0.0366)
OKLCHoklch(73.28% 0.037 96.4)
XYZxyz(36.8248, 39.4736, 31.6605)
Luminance0.3947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA98F #8F95AF
analogous
#AF998F #AFA98F #A5AF8F
triadic
#AFA98F #8FAFA9 #A98FAF
tetradic
#AFA98F #8FAF99 #8F95AF #AF8FA5
square
#AFA98F #8FAF99 #8F95AF #AF8FA5
split-complementary
#AFA98F #8FA5AF #998FAF
monochromatic
#726C51 #968E6B #AFA98F #C9C4B3 #E2E0D6

Accessibility & contrast

On white

2.36
#AFA98F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#AFA98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA98F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA98F#FFFFFF#000000##000000
##AFA98F1.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA78D
Deuteranopia (green-blind)
#B0AA90
Tritanopia (blue-blind)
#B4A5A2
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa98f;
/* rgb */ color: rgb(175, 169, 143);
/* oklch */ color: oklch(73.3% 0.037 96.4);
Tailwind
colors: {
  custom: {
    50: '#c7c2af',
    500: '#afa98f',
    950: '#000000',
  },
}
SCSS
$custom: #afa98f;
$custom-light: #c7c2af;
$custom-dark: #000000;
JSON
{
  "hex": "#afa98f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 143
  },
  "hsl": {
    "h": 48.75,
    "s": 16.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.73277,
    "c": 0.03682,
    "h": 96.4
  },
  "luminance": 0.39473
}

Semantic roles & 50–950 ramp

primary
#AFA98F
secondary
#C7C9D3
accent
#5A9B4B
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA98F

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

Preview Lab → · Contrast checker → · Palette generator →

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