#8A798A#8A798A

#8A798A is a mid, muted grey. Relative luminance 0.209; OKLCH L 59.7% C 0.032 H 326.0°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A798A
RGBrgb(138, 121, 138)
HSLhsl(300, 7%, 51%)
HSVhsv(300, 12%, 54%)
CMYKcmyk(0%, 12.3%, 0%, 45.9%)
CIE-LABlab(52.85, 9.77, -6.82)
CIE-LCHlch(52.85, 11.91, 325.09°)
OKLaboklab(59.73% 0.0269 -0.0182)
OKLCHoklch(59.73% 0.032 326)
XYZxyz(21.9054, 20.9133, 26.9225)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798A #798A79
analogous
#81798A #8A798A #8A7981
triadic
#8A798A #8A8A79 #798A8A
tetradic
#8A798A #8A8179 #798A79 #79818A
square
#8A798A #8A8179 #798A79 #79818A
split-complementary
#8A798A #818A79 #798A81
monochromatic
#494049 #6A5C6A #8A798A #A79AA7 #C3BAC3

Accessibility & contrast

On white

4.05
#8A798A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8A798A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A798A
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A798A#FFFFFF#000000##000000
##8A798A1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8B
Deuteranopia (green-blind)
#7C7F89
Tritanopia (blue-blind)
#8B7A7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a798a;
/* rgb */ color: rgb(138, 121, 138);
/* oklch */ color: oklch(59.7% 0.032 326.0);
Tailwind
colors: {
  custom: {
    50: '#ac9fac',
    500: '#8a798a',
    950: '#000000',
  },
}
SCSS
$custom: #8a798a;
$custom-light: #ac9fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798a",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5973,
    "c": 0.03245,
    "h": 326
  },
  "luminance": 0.20913
}

Semantic roles & 50–950 ramp

primary
#8A798A
secondary
#ACB3AC
accent
#B07878
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798A

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

Preview Lab → · Contrast checker → · Palette generator →

#8A798A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva