#AFAB98#AFAB98

#AFAB98 is a light, muted yellow. Relative luminance 0.405; OKLCH L 73.9% C 0.027 H 97.2°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#AFAB98
RGBrgb(175, 171, 152)
HSLhsl(50, 13%, 64%)
HSVhsv(50, 13%, 69%)
CMYKcmyk(0%, 2.3%, 13.1%, 31.4%)
CIE-LABlab(69.83, -1.91, 10.30)
CIE-LCHlch(69.83, 10.48, 100.48°)
OKLaboklab(73.92% -0.0034 0.0268)
OKLCHoklch(73.92% 0.027 97.2)
XYZxyz(37.9091, 40.5072, 35.5213)
Luminance0.4051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB98 #989CAF
analogous
#AFA098 #AFAB98 #A8AF98
triadic
#AFAB98 #98AFAB #AB98AF
tetradic
#AFAB98 #98AFA0 #989CAF #AF98A8
square
#AFAB98 #98AFA0 #989CAF #AF98A8
split-complementary
#AFAB98 #98A8AF #A098AF
monochromatic
#736F59 #948F76 #AFAB98 #CAC7BA #E5E3DD

Accessibility & contrast

On white

2.31
#AFAB98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#AFAB98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB98
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB98#FFFFFF#000000##000000
##AFAB981.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFAA97
Deuteranopia (green-blind)
#B0AB99
Tritanopia (blue-blind)
#B3A8A6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afab98;
/* rgb */ color: rgb(175, 171, 152);
/* oklch */ color: oklch(73.9% 0.027 97.2);
Tailwind
colors: {
  custom: {
    50: '#c7c4b6',
    500: '#afab98',
    950: '#000000',
  },
}
SCSS
$custom: #afab98;
$custom-light: #c7c4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#afab98",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 152
  },
  "hsl": {
    "h": 49.565,
    "s": 12.568,
    "l": 64.118
  },
  "oklch": {
    "l": 0.73924,
    "c": 0.02697,
    "h": 97.2
  },
  "luminance": 0.40507
}

Semantic roles & 50–950 ramp

primary
#AFAB98
secondary
#CDCFD5
accent
#5B974F
background
#FCFCFB
surface
#F8F8F6
border
#D1D1D0
text
#131211
muted
#828180

Preview Lab

Preview with #AFAB98

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

Preview Lab → · Contrast checker → · Palette generator →

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