#8A797E#8A797E

#8A797E is a mid, muted grey. Relative luminance 0.206; OKLCH L 59.3% C 0.022 H 358.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A797E
RGBrgb(138, 121, 126)
HSLhsl(342, 7%, 51%)
HSVhsv(342, 12%, 54%)
CMYKcmyk(0%, 12.3%, 8.7%, 45.9%)
CIE-LABlab(52.49, 7.45, -0.32)
CIE-LCHlch(52.49, 7.46, 357.53°)
OKLaboklab(59.33% 0.0221 -0.0007)
OKLCHoklch(59.33% 0.022 358.1)
XYZxyz(21.0842, 20.5848, 22.5972)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A797E #798A85
analogous
#8A7986 #8A797E #8A7C79
triadic
#8A797E #7E8A79 #797E8A
tetradic
#8A797E #868A79 #798A85 #7C798A
square
#8A797E #868A79 #798A85 #7C798A
split-complementary
#8A797E #798A7C #79868A
monochromatic
#494042 #6A5C60 #8A797E #A79A9D #C3BABD

Accessibility & contrast

On white

4.10
#8A797E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#8A797E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A797E
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A797E#FFFFFF#000000##000000
##8A797E1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B7C7E
Deuteranopia (green-blind)
#7E7E7E
Tritanopia (blue-blind)
#8D787B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a797e;
/* rgb */ color: rgb(138, 121, 126);
/* oklch */ color: oklch(59.3% 0.022 358.1);
Tailwind
colors: {
  custom: {
    50: '#ac9fa3',
    500: '#8a797e',
    950: '#000000',
  },
}
SCSS
$custom: #8a797e;
$custom-light: #ac9fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a797e",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 126
  },
  "hsl": {
    "h": 342.353,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59328,
    "c": 0.02214,
    "h": 358.1
  },
  "luminance": 0.20584
}

Semantic roles & 50–950 ramp

primary
#8A797E
secondary
#ACB3B1
accent
#B09F78
background
#FAF9FA
surface
#F4F2F3
border
#CECCCD
text
#100E0F
muted
#7F7E7F

Preview Lab

Preview with #8A797E

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

Preview Lab → · Contrast checker → · Palette generator →

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