#A8A87F#A8A87F

#A8A87F is a light, muted yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.056 H 107.7°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#A8A87F
RGBrgb(168, 168, 127)
HSLhsl(60, 19%, 58%)
HSVhsv(60, 24%, 66%)
CMYKcmyk(0%, 0%, 24.4%, 34.1%)
CIE-LABlab(67.92, -6.85, 21.26)
CIE-LCHlch(67.92, 22.34, 107.86°)
OKLaboklab(72.1% -0.0172 0.0538)
OKLCHoklch(72.1% 0.056 107.7)
XYZxyz(33.9818, 37.8629, 25.5927)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A87F #7F7FA8
analogous
#A8937F #A8A87F #93A87F
triadic
#A8A87F #7FA8A8 #A87FA8
tetradic
#A8A87F #7FA893 #7F7FA8 #A87F93
square
#A8A87F #7FA893 #7F7FA8 #A87F93
split-complementary
#A8A87F #7F93A8 #937FA8
monochromatic
#676746 #8B8B5F #A8A87F #C1C1A3 #DADAC8

Accessibility & contrast

On white

2.45
#A8A87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#A8A87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A87F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A87F#FFFFFF#000000##000000
##A8A87F1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA57C
Deuteranopia (green-blind)
#B0A681
Tritanopia (blue-blind)
#AEA39D
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a8a87f;
/* rgb */ color: rgb(168, 168, 127);
/* oklch */ color: oklch(72.1% 0.056 107.7);
Tailwind
colors: {
  custom: {
    50: '#c2c1a4',
    500: '#a8a87f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a87f;
$custom-light: #c2c1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a87f",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 127
  },
  "hsl": {
    "h": 60,
    "s": 19.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.72102,
    "c": 0.05645,
    "h": 107.7
  },
  "luminance": 0.37862
}

Semantic roles & 50–950 ramp

primary
#A8A87F
secondary
#B9B9CA
accent
#6CBC6C
background
#FBFBFA
surface
#F7F7F4
border
#D0D0CE
text
#12120F
muted
#81817F

Preview Lab

Preview with #A8A87F

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

Preview Lab → · Contrast checker → · Palette generator →

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