#AFA987#AFA987

#AFA987 is a light, muted yellow. Relative luminance 0.392; OKLCH L 73.1% C 0.047 H 99.1°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFA987
RGBrgb(175, 169, 135)
HSLhsl(51, 20%, 61%)
HSVhsv(51, 23%, 69%)
CMYKcmyk(0%, 3.4%, 22.9%, 31.4%)
CIE-LABlab(68.92, -3.49, 18.36)
CIE-LCHlch(68.92, 18.69, 100.75°)
OKLaboklab(73.09% -0.0075 0.0468)
OKLCHoklch(73.09% 0.047 99.1)
XYZxyz(36.2403, 39.2398, 28.5819)
Luminance0.3924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA987 #878DAF
analogous
#AF9587 #AFA987 #A1AF87
triadic
#AFA987 #87AFA9 #A987AF
tetradic
#AFA987 #87AF95 #878DAF #AF87A1
square
#AFA987 #87AF95 #878DAF #AF87A1
split-complementary
#AFA987 #87A1AF #9587AF
monochromatic
#716B4B #958E64 #AFA987 #C7C3AC #E0DED0

Accessibility & contrast

On white

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

On black

8.85
#AFA987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA987
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA987#FFFFFF#000000##000000
##AFA9871.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A785
Deuteranopia (green-blind)
#B2A988
Tritanopia (blue-blind)
#B5A4A0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa987;
/* rgb */ color: rgb(175, 169, 135);
/* oklch */ color: oklch(73.1% 0.047 99.1);
Tailwind
colors: {
  custom: {
    50: '#c7c2aa',
    500: '#afa987',
    950: '#000000',
  },
}
SCSS
$custom: #afa987;
$custom-light: #c7c2aa;
$custom-dark: #000000;
JSON
{
  "hex": "#afa987",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 135
  },
  "hsl": {
    "h": 51,
    "s": 20,
    "l": 60.784
  },
  "oklch": {
    "l": 0.73089,
    "c": 0.04741,
    "h": 99.1
  },
  "luminance": 0.39239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA987

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

Preview Lab → · Contrast checker → · Palette generator →

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