#A8A798#A8A798

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

Color values

HEX#A8A798
RGBrgb(168, 167, 152)
HSLhsl(56, 8%, 63%)
HSVhsv(56, 10%, 66%)
CMYKcmyk(0%, 0.6%, 9.5%, 34.1%)
CIE-LABlab(68.19, -2.35, 7.89)
CIE-LCHlch(68.19, 8.23, 106.60°)
OKLaboklab(72.49% -0.0051 0.0206)
OKLCHoklch(72.49% 0.021 103.8)
XYZxyz(35.6340, 38.2295, 35.2015)
Luminance0.3823 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A798 #9899A8
analogous
#A89F98 #A8A798 #A1A898
triadic
#A8A798 #98A8A7 #A798A8
tetradic
#A8A798 #98A89F #9899A8 #A898A1
square
#A8A798 #98A89F #9899A8 #A898A1
split-complementary
#A8A798 #98A1A8 #9F98A8
monochromatic
#6B6A5A #8C8B77 #A8A798 #C4C3B9 #E0E0DA

Accessibility & contrast

On white

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

On black

8.65
#A8A798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A798
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A798#FFFFFF#000000##000000
##A8A7981.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a798;
/* rgb */ color: rgb(168, 167, 152);
/* oklch */ color: oklch(72.5% 0.021 103.8);
Tailwind
colors: {
  custom: {
    50: '#c1c1b6',
    500: '#a8a798',
    950: '#000000',
  },
}
SCSS
$custom: #a8a798;
$custom-light: #c1c1b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a798",
  "rgb": {
    "r": 168,
    "g": 167,
    "b": 152
  },
  "hsl": {
    "h": 56.25,
    "s": 8.421,
    "l": 62.745
  },
  "oklch": {
    "l": 0.72493,
    "c": 0.02119,
    "h": 103.8
  },
  "luminance": 0.38229
}

Semantic roles & 50–950 ramp

primary
#A8A798
secondary
#CBCBD1
accent
#579253
background
#FBFBFB
surface
#F7F7F6
border
#D0D0D0
text
#121211
muted
#818180

Preview Lab

Preview with #A8A798

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

Preview Lab → · Contrast checker → · Palette generator →

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