#8A797C#8A797C

#8A797C is a mid, muted grey. Relative luminance 0.205; OKLCH L 59.3% C 0.021 H 5.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A797C
RGBrgb(138, 121, 124)
HSLhsl(349, 7%, 51%)
HSVhsv(349, 12%, 54%)
CMYKcmyk(0%, 12.3%, 10.1%, 45.9%)
CIE-LABlab(52.44, 7.08, 0.77)
CIE-LCHlch(52.44, 7.12, 6.18°)
OKLaboklab(59.27% 0.0213 0.0021)
OKLCHoklch(59.27% 0.021 5.7)
XYZxyz(20.9564, 20.5337, 21.9243)
Luminance0.2053 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A797C #798A87
analogous
#8A7984 #8A797C #8A7E79
triadic
#8A797C #7C8A79 #797C8A
tetradic
#8A797C #848A79 #798A87 #7E798A
square
#8A797C #848A79 #798A87 #7E798A
split-complementary
#8A797C #798A7E #79848A
monochromatic
#494041 #6A5C5F #8A797C #A79A9C #C3BABC

Accessibility & contrast

On white

4.11
#8A797C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A797C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A797C
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A797C#FFFFFF#000000##000000
##8A797C1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7B7C
Deuteranopia (green-blind)
#7F7E7C
Tritanopia (blue-blind)
#8D787A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a797c;
/* rgb */ color: rgb(138, 121, 124);
/* oklch */ color: oklch(59.3% 0.021 5.7);
Tailwind
colors: {
  custom: {
    50: '#ac9fa1',
    500: '#8a797c',
    950: '#000000',
  },
}
SCSS
$custom: #8a797c;
$custom-light: #ac9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a797c",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 124
  },
  "hsl": {
    "h": 349.412,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59265,
    "c": 0.02142,
    "h": 5.7
  },
  "luminance": 0.20533
}

Semantic roles & 50–950 ramp

primary
#8A797C
secondary
#ACB3B2
accent
#B0A678
background
#FAF9F9
surface
#F4F2F2
border
#CECCCC
text
#100E0F
muted
#7F7E7E

Preview Lab

Preview with #8A797C

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

Preview Lab → · Contrast checker → · Palette generator →

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