#AFA887#AFA887

#AFA887 is a light, muted yellow. Relative luminance 0.389; OKLCH L 72.9% C 0.046 H 97.4°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AFA887
RGBrgb(175, 168, 135)
HSLhsl(50, 20%, 61%)
HSVhsv(50, 23%, 69%)
CMYKcmyk(0%, 4%, 22.9%, 31.4%)
CIE-LABlab(68.66, -2.95, 17.99)
CIE-LCHlch(68.66, 18.23, 99.31°)
OKLaboklab(72.88% -0.006 0.0459)
OKLCHoklch(72.88% 0.046 97.4)
XYZxyz(36.0550, 38.8691, 28.5201)
Luminance0.3887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA887 #878EAF
analogous
#AF9487 #AFA887 #A2AF87
triadic
#AFA887 #87AFA8 #A887AF
tetradic
#AFA887 #87AF94 #878EAF #AF87A2
square
#AFA887 #87AF94 #878EAF #AF87A2
split-complementary
#AFA887 #87A2AF #9487AF
monochromatic
#716A4B #958D64 #AFA887 #C7C3AC #E0DDD0

Accessibility & contrast

On white

2.39
#AFA887 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AFA887 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA887
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA887#FFFFFF#000000##000000
##AFA8871.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA685
Deuteranopia (green-blind)
#B1A988
Tritanopia (blue-blind)
#B5A39F
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa887;
/* rgb */ color: rgb(175, 168, 135);
/* oklch */ color: oklch(72.9% 0.046 97.4);
Tailwind
colors: {
  custom: {
    50: '#c7c1aa',
    500: '#afa887',
    950: '#000000',
  },
}
SCSS
$custom: #afa887;
$custom-light: #c7c1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#afa887",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 135
  },
  "hsl": {
    "h": 49.5,
    "s": 20,
    "l": 60.784
  },
  "oklch": {
    "l": 0.72877,
    "c": 0.04629,
    "h": 97.4
  },
  "luminance": 0.38868
}

Semantic roles & 50–950 ramp

primary
#AFA887
secondary
#C1C4D0
accent
#569E47
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA887

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

Preview Lab → · Contrast checker → · Palette generator →

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