#8A797B#8A797B

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

Color values

HEX#8A797B
RGBrgb(138, 121, 123)
HSLhsl(353, 7%, 51%)
HSVhsv(353, 12%, 54%)
CMYKcmyk(0%, 12.3%, 10.9%, 45.9%)
CIE-LABlab(52.41, 6.90, 1.31)
CIE-LCHlch(52.41, 7.02, 10.77°)
OKLaboklab(59.23% 0.0209 0.0036)
OKLCHoklch(59.23% 0.021 9.7)
XYZxyz(20.8935, 20.5085, 21.5930)
Luminance0.2051 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A797B #798A88
analogous
#8A7983 #8A797B #8A7F79
triadic
#8A797B #7B8A79 #797B8A
tetradic
#8A797B #838A79 #798A88 #7F798A
square
#8A797B #838A79 #798A88 #7F798A
split-complementary
#8A797B #798A7F #79838A
monochromatic
#494041 #6A5C5E #8A797B #A79A9B #C3BABB

Accessibility & contrast

On white

4.12
#8A797B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A797B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A797B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A797B#FFFFFF#000000##000000
##8A797B1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7B7B
Deuteranopia (green-blind)
#7F7E7B
Tritanopia (blue-blind)
#8E787A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a797b;
/* rgb */ color: rgb(138, 121, 123);
/* oklch */ color: oklch(59.2% 0.021 9.7);
Tailwind
colors: {
  custom: {
    50: '#ac9fa1',
    500: '#8a797b',
    950: '#000000',
  },
}
SCSS
$custom: #8a797b;
$custom-light: #ac9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a797b",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 123
  },
  "hsl": {
    "h": 352.941,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59234,
    "c": 0.0212,
    "h": 9.7
  },
  "luminance": 0.20508
}

Semantic roles & 50–950 ramp

primary
#8A797B
secondary
#ACB3B2
accent
#B0A978
background
#FAF9F9
surface
#F4F2F2
border
#CECCCC
text
#100E0E
muted
#7F7E7E

Preview Lab

Preview with #8A797B

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

Preview Lab → · Contrast checker → · Palette generator →

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