#8A798B#8A798B

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

Color values

HEX#8A798B
RGBrgb(138, 121, 139)
HSLhsl(297, 7%, 51%)
HSVhsv(297, 13%, 55%)
CMYKcmyk(0.7%, 12.9%, 0%, 45.5%)
CIE-LABlab(52.89, 9.97, -7.35)
CIE-LCHlch(52.89, 12.39, 323.59°)
OKLaboklab(59.77% 0.0273 -0.0196)
OKLCHoklch(59.77% 0.034 324.3)
XYZxyz(21.9782, 20.9424, 27.3056)
Luminance0.2094 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798B #7A8B79
analogous
#81798B #8A798B #8B7983
triadic
#8A798B #8B8A79 #798B8A
tetradic
#8A798B #8B8179 #7A8B79 #79838B
square
#8A798B #8B8179 #7A8B79 #79838B
split-complementary
#8A798B #838B79 #798B81
monochromatic
#49404A #6A5C6B #8A798B #A79AA7 #C3BBC4

Accessibility & contrast

On white

4.05
#8A798B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A798B#FFFFFF#000000##000000
##8A798B1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#787D8C
Deuteranopia (green-blind)
#7B7F8A
Tritanopia (blue-blind)
#8B7A7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a798b;
/* rgb */ color: rgb(138, 121, 139);
/* oklch */ color: oklch(59.8% 0.034 324.3);
Tailwind
colors: {
  custom: {
    50: '#ac9fac',
    500: '#8a798b',
    950: '#000000',
  },
}
SCSS
$custom: #8a798b;
$custom-light: #ac9fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798b",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 139
  },
  "hsl": {
    "h": 296.667,
    "s": 7.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59765,
    "c": 0.03359,
    "h": 324.3
  },
  "luminance": 0.20942
}

Semantic roles & 50–950 ramp

primary
#8A798B
secondary
#ACB4AC
accent
#B0787B
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798B

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

Preview Lab → · Contrast checker → · Palette generator →

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