#8A797F#8A797F

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

Color values

HEX#8A797F
RGBrgb(138, 121, 127)
HSLhsl(339, 7%, 51%)
HSVhsv(339, 12%, 54%)
CMYKcmyk(0%, 12.3%, 8%, 45.9%)
CIE-LABlab(52.52, 7.64, -0.87)
CIE-LCHlch(52.52, 7.69, 353.53°)
OKLaboklab(59.36% 0.0225 -0.0022)
OKLCHoklch(59.36% 0.023 354.5)
XYZxyz(21.1490, 20.6107, 22.9387)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A797F #798A84
analogous
#8A7987 #8A797F #8A7B79
triadic
#8A797F #7F8A79 #797F8A
tetradic
#8A797F #878A79 #798A84 #7B798A
square
#8A797F #878A79 #798A84 #7B798A
split-complementary
#8A797F #798A7B #79878A
monochromatic
#494043 #6A5C61 #8A797F #A79A9E #C3BABD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A797F#FFFFFF#000000##000000
##8A797F1.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)
#7B7C7F
Deuteranopia (green-blind)
#7E7E7F
Tritanopia (blue-blind)
#8D787B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a797f;
/* rgb */ color: rgb(138, 121, 127);
/* oklch */ color: oklch(59.4% 0.023 354.5);
Tailwind
colors: {
  custom: {
    50: '#ac9fa4',
    500: '#8a797f',
    950: '#000000',
  },
}
SCSS
$custom: #8a797f;
$custom-light: #ac9fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a797f",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 338.824,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5936,
    "c": 0.02265,
    "h": 354.5
  },
  "luminance": 0.2061
}

Semantic roles & 50–950 ramp

primary
#8A797F
secondary
#ACB3B1
accent
#B09C78
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E0F
muted
#7F7E7F

Preview Lab

Preview with #8A797F

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

Preview Lab → · Contrast checker → · Palette generator →

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