#A8A787#A8A787

#A8A787 is a light, muted yellow. Relative luminance 0.377; OKLCH L 72.1% C 0.045 H 106.0°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#A8A787
RGBrgb(168, 167, 135)
HSLhsl(58, 16%, 59%)
HSVhsv(58, 20%, 66%)
CMYKcmyk(0%, 0.6%, 19.6%, 34.1%)
CIE-LABlab(67.81, -5.12, 16.73)
CIE-LCHlch(67.81, 17.50, 107.03°)
OKLaboklab(72.07% -0.0123 0.0428)
OKLCHoklch(72.07% 0.045 106)
XYZxyz(34.3401, 37.7119, 28.3871)
Luminance0.3771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A787 #8788A8
analogous
#A89787 #A8A787 #99A887
triadic
#A8A787 #87A8A7 #A787A8
tetradic
#A8A787 #87A897 #8788A8 #A88799
square
#A8A787 #87A897 #8788A8 #A88799
split-complementary
#A8A787 #8799A8 #9787A8
monochromatic
#69684C #8C8B66 #A8A787 #C2C1AA #DBDBCE

Accessibility & contrast

On white

2.46
#A8A787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#A8A787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A787
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A787#FFFFFF#000000##000000
##A8A7871.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA485
Deuteranopia (green-blind)
#AEA688
Tritanopia (blue-blind)
#ADA39E
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a8a787;
/* rgb */ color: rgb(168, 167, 135);
/* oklch */ color: oklch(72.1% 0.045 106.0);
Tailwind
colors: {
  custom: {
    50: '#c2c1aa',
    500: '#a8a787',
    950: '#000000',
  },
}
SCSS
$custom: #a8a787;
$custom-light: #c2c1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a787",
  "rgb": {
    "r": 168,
    "g": 167,
    "b": 135
  },
  "hsl": {
    "h": 58.182,
    "s": 15.942,
    "l": 59.412
  },
  "oklch": {
    "l": 0.72066,
    "c": 0.04451,
    "h": 106
  },
  "luminance": 0.37712
}

Semantic roles & 50–950 ramp

primary
#A8A787
secondary
#BFBFCC
accent
#71B96F
background
#FBFBFA
surface
#F7F7F4
border
#D0D0CE
text
#121210
muted
#81817F

Preview Lab

Preview with #A8A787

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

Preview Lab → · Contrast checker → · Palette generator →

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