#A8A797#A8A797

#A8A797 is a light, muted yellow. Relative luminance 0.382; OKLCH L 72.5% C 0.023 H 104.0°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#A8A797
RGBrgb(168, 167, 151)
HSLhsl(56, 9%, 63%)
HSVhsv(56, 10%, 66%)
CMYKcmyk(0%, 0.6%, 10.1%, 34.1%)
CIE-LABlab(68.17, -2.52, 8.41)
CIE-LCHlch(68.17, 8.78, 106.71°)
OKLaboklab(72.47% -0.0055 0.0219)
OKLCHoklch(72.47% 0.023 104)
XYZxyz(35.5524, 38.1969, 34.7720)
Luminance0.3820 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A797 #9798A8
analogous
#A89F97 #A8A797 #A0A897
triadic
#A8A797 #97A8A7 #A797A8
tetradic
#A8A797 #97A89F #9798A8 #A897A0
square
#A8A797 #97A89F #9798A8 #A897A0
split-complementary
#A8A797 #97A0A8 #9F97A8
monochromatic
#6B6A5A #8C8B76 #A8A797 #C4C3B8 #E0DFDA

Accessibility & contrast

On white

2.43
#A8A797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#A8A797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A797
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A797#FFFFFF#000000##000000
##A8A7971.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AAA696
Deuteranopia (green-blind)
#ABA798
Tritanopia (blue-blind)
#ABA5A2
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a8a797;
/* rgb */ color: rgb(168, 167, 151);
/* oklch */ color: oklch(72.5% 0.023 104.0);
Tailwind
colors: {
  custom: {
    50: '#c1c1b5',
    500: '#a8a797',
    950: '#000000',
  },
}
SCSS
$custom: #a8a797;
$custom-light: #c1c1b5;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a797",
  "rgb": {
    "r": 168,
    "g": 167,
    "b": 151
  },
  "hsl": {
    "h": 56.471,
    "s": 8.901,
    "l": 62.549
  },
  "oklch": {
    "l": 0.72466,
    "c": 0.02258,
    "h": 104
  },
  "luminance": 0.38197
}

Semantic roles & 50–950 ramp

primary
#A8A797
secondary
#CACBD0
accent
#569353
background
#FBFBFB
surface
#F7F7F6
border
#D0D0D0
text
#121211
muted
#818180

Preview Lab

Preview with #A8A797

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

Preview Lab → · Contrast checker → · Palette generator →

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