#8A787B#8A787B

#8A787B is a mid, muted grey. Relative luminance 0.203; OKLCH L 59.0% C 0.023 H 6.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A787B
RGBrgb(138, 120, 123)
HSLhsl(350, 7%, 51%)
HSVhsv(350, 13%, 54%)
CMYKcmyk(0%, 13%, 10.9%, 45.9%)
CIE-LABlab(52.14, 7.48, 0.92)
CIE-LCHlch(52.14, 7.54, 7.01°)
OKLaboklab(59.02% 0.0225 0.0025)
OKLCHoklch(59.02% 0.023 6.4)
XYZxyz(20.7726, 20.2667, 21.5527)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A787B #788A87
analogous
#8A7884 #8A787B #8A7E78
triadic
#8A787B #7B8A78 #787B8A
tetradic
#8A787B #848A78 #788A87 #7E788A
square
#8A787B #848A78 #788A87 #7E788A
split-complementary
#8A787B #788A7E #78848A
monochromatic
#493F41 #695B5E #8A787B #A6999B #C3BABB

Accessibility & contrast

On white

4.16
#8A787B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A787B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A787B
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A787B#FFFFFF#000000##000000
##8A787B1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A7B7B
Deuteranopia (green-blind)
#7E7E7B
Tritanopia (blue-blind)
#8E7779
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a787b;
/* rgb */ color: rgb(138, 120, 123);
/* oklch */ color: oklch(59.0% 0.023 6.4);
Tailwind
colors: {
  custom: {
    50: '#ac9fa1',
    500: '#8a787b',
    950: '#000000',
  },
}
SCSS
$custom: #8a787b;
$custom-light: #ac9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a787b",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 123
  },
  "hsl": {
    "h": 350,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59023,
    "c": 0.02268,
    "h": 6.4
  },
  "luminance": 0.20266
}

Semantic roles & 50–950 ramp

primary
#8A787B
secondary
#ABB3B2
accent
#B0A778
background
#FAF9F9
surface
#F4F2F2
border
#CECCCC
text
#100E0E
muted
#7F7E7E

Preview Lab

Preview with #8A787B

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

Preview Lab → · Contrast checker → · Palette generator →

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