#8A798C#8A798C

#8A798C is a mid, muted grey. Relative luminance 0.210; OKLCH L 59.8% C 0.035 H 322.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A798C
RGBrgb(138, 121, 140)
HSLhsl(294, 8%, 51%)
HSVhsv(294, 14%, 55%)
CMYKcmyk(1.4%, 13.6%, 0%, 45.1%)
CIE-LABlab(52.92, 10.17, -7.89)
CIE-LCHlch(52.92, 12.87, 322.20°)
OKLaboklab(59.8% 0.0277 -0.0211)
OKLCHoklch(59.8% 0.035 322.7)
XYZxyz(22.0516, 20.9718, 27.6921)
Luminance0.2097 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798C #7B8C79
analogous
#80798C #8A798C #8C7984
triadic
#8A798C #8C8A79 #798C8A
tetradic
#8A798C #8C8079 #7B8C79 #79848C
square
#8A798C #8C8079 #7B8C79 #79848C
split-complementary
#8A798C #848C79 #798C80
monochromatic
#49404B #6A5C6C #8A798C #A79AA8 #C4BBC5

Accessibility & contrast

On white

4.04
#8A798C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#8A798C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A798C
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A798C#FFFFFF#000000##000000
##8A798C1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8D
Deuteranopia (green-blind)
#7B7F8B
Tritanopia (blue-blind)
#8B7B7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a798c;
/* rgb */ color: rgb(138, 121, 140);
/* oklch */ color: oklch(59.8% 0.035 322.7);
Tailwind
colors: {
  custom: {
    50: '#ac9fad',
    500: '#8a798c',
    950: '#000000',
  },
}
SCSS
$custom: #8a798c;
$custom-light: #ac9fad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798c",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 140
  },
  "hsl": {
    "h": 293.684,
    "s": 7.631,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59801,
    "c": 0.03477,
    "h": 322.7
  },
  "luminance": 0.20971
}

Semantic roles & 50–950 ramp

primary
#8A798C
secondary
#ADB5AC
accent
#B1777D
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798C

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

Preview Lab → · Contrast checker → · Palette generator →

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