#A6A87C#A6A87C

#A6A87C is a light, moderate yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.061 H 110.0°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#A6A87C
RGBrgb(166, 168, 124)
HSLhsl(63, 20%, 57%)
HSVhsv(63, 26%, 66%)
CMYKcmyk(1.2%, 0%, 26.2%, 34.1%)
CIE-LABlab(67.70, -8.06, 22.57)
CIE-LCHlch(67.70, 23.97, 109.66°)
OKLaboklab(71.87% -0.0207 0.0569)
OKLCHoklch(71.87% 0.061 110)
XYZxyz(33.3666, 37.5679, 24.5585)
Luminance0.3757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A87C #7E7CA8
analogous
#A8947C #A6A87C #90A87C
triadic
#A6A87C #7CA6A8 #A87CA6
tetradic
#A6A87C #7CA894 #7E7CA8 #A87C90
square
#A6A87C #7CA894 #7E7CA8 #A87C90
split-complementary
#A6A87C #7C90A8 #947CA8
monochromatic
#646644 #898B5C #A6A87C #BFC0A1 #D8D9C6

Accessibility & contrast

On white

2.47
#A6A87C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#A6A87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A87C
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A87C#FFFFFF#000000##000000
##A6A87C1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA479
Deuteranopia (green-blind)
#AFA67E
Tritanopia (blue-blind)
#ACA39C
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a6a87c;
/* rgb */ color: rgb(166, 168, 124);
/* oklch */ color: oklch(71.9% 0.061 110.0);
Tailwind
colors: {
  custom: {
    50: '#c1c1a2',
    500: '#a6a87c',
    950: '#000000',
  },
}
SCSS
$custom: #a6a87c;
$custom-light: #c1c1a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a87c",
  "rgb": {
    "r": 166,
    "g": 168,
    "b": 124
  },
  "hsl": {
    "h": 62.727,
    "s": 20.183,
    "l": 57.255
  },
  "oklch": {
    "l": 0.7187,
    "c": 0.06053,
    "h": 110
  },
  "luminance": 0.37567
}

Semantic roles & 50–950 ramp

primary
#A6A87C
secondary
#B8B7C9
accent
#6BBD6F
background
#FBFBFA
surface
#F7F7F3
border
#D0D0CD
text
#12120F
muted
#81817F

Preview Lab

Preview with #A6A87C

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

Preview Lab → · Contrast checker → · Palette generator →

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