#AFA787#AFA787

#AFA787 is a light, muted yellow. Relative luminance 0.385; OKLCH L 72.7% C 0.045 H 95.6°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFA787
RGBrgb(175, 167, 135)
HSLhsl(48, 20%, 61%)
HSVhsv(48, 23%, 69%)
CMYKcmyk(0%, 4.6%, 22.9%, 31.4%)
CIE-LABlab(68.39, -2.41, 17.62)
CIE-LCHlch(68.39, 17.79, 97.79°)
OKLaboklab(72.67% -0.0044 0.045)
OKLCHoklch(72.67% 0.045 95.6)
XYZxyz(35.8711, 38.5013, 28.4588)
Luminance0.3850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA787 #878FAF
analogous
#AF9387 #AFA787 #A3AF87
triadic
#AFA787 #87AFA7 #A787AF
tetradic
#AFA787 #87AF93 #878FAF #AF87A3
square
#AFA787 #87AF93 #878FAF #AF87A3
split-complementary
#AFA787 #87A3AF #9387AF
monochromatic
#71694B #958B64 #AFA787 #C7C2AC #E0DDD0

Accessibility & contrast

On white

2.41
#AFA787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#AFA787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA787
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA787#FFFFFF#000000##000000
##AFA7871.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA585
Deuteranopia (green-blind)
#B0A888
Tritanopia (blue-blind)
#B6A29E
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa787;
/* rgb */ color: rgb(175, 167, 135);
/* oklch */ color: oklch(72.7% 0.045 95.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1aa',
    500: '#afa787',
    950: '#000000',
  },
}
SCSS
$custom: #afa787;
$custom-light: #c7c1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#afa787",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 135
  },
  "hsl": {
    "h": 48,
    "s": 20,
    "l": 60.784
  },
  "oklch": {
    "l": 0.72666,
    "c": 0.04521,
    "h": 95.6
  },
  "luminance": 0.38501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA787

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

Preview Lab → · Contrast checker → · Palette generator →

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