#A6A87F#A6A87F

#A6A87F is a light, muted yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.057 H 110.1°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#A6A87F
RGBrgb(166, 168, 127)
HSLhsl(63, 19%, 58%)
HSVhsv(63, 24%, 66%)
CMYKcmyk(1.2%, 0%, 24.4%, 34.1%)
CIE-LABlab(67.76, -7.63, 21.01)
CIE-LCHlch(67.76, 22.36, 109.96°)
OKLaboklab(71.93% -0.0194 0.0532)
OKLCHoklch(71.93% 0.057 110.1)
XYZxyz(33.5592, 37.6449, 25.5729)
Luminance0.3765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A87F #817FA8
analogous
#A8957F #A6A87F #91A87F
triadic
#A6A87F #7FA6A8 #A87FA6
tetradic
#A6A87F #7FA895 #817FA8 #A87F91
square
#A6A87F #7FA895 #817FA8 #A87F91
split-complementary
#A6A87F #7F91A8 #957FA8
monochromatic
#656746 #898B5F #A6A87F #BFC1A3 #D9DAC8

Accessibility & contrast

On white

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

On black

8.53
#A6A87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A87F
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A87F#FFFFFF#000000##000000
##A6A87F1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA47C
Deuteranopia (green-blind)
#AFA681
Tritanopia (blue-blind)
#ACA39D
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a6a87f;
/* rgb */ color: rgb(166, 168, 127);
/* oklch */ color: oklch(71.9% 0.057 110.1);
Tailwind
colors: {
  custom: {
    50: '#c0c1a4',
    500: '#a6a87f',
    950: '#000000',
  },
}
SCSS
$custom: #a6a87f;
$custom-light: #c0c1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a87f",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 127
  },
  "hsl": {
    "h": 62.927,
    "s": 19.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.71934,
    "c": 0.05661,
    "h": 110.1
  },
  "luminance": 0.37645
}

Semantic roles & 50–950 ramp

primary
#A6A87F
secondary
#BAB9CA
accent
#6CBC70
background
#FBFBFA
surface
#F7F7F4
border
#D0D0CE
text
#12120F
muted
#81817F

Preview Lab

Preview with #A6A87F

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

Preview Lab → · Contrast checker → · Palette generator →

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