#8A787F#8A787F

#8A787F is a mid, muted grey. Relative luminance 0.204; OKLCH L 59.2% C 0.024 H 352.4°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A787F
RGBrgb(138, 120, 127)
HSLhsl(337, 7%, 51%)
HSVhsv(337, 13%, 54%)
CMYKcmyk(0%, 13%, 8%, 45.9%)
CIE-LABlab(52.25, 8.22, -1.26)
CIE-LCHlch(52.25, 8.31, 351.28°)
OKLaboklab(59.15% 0.0242 -0.0032)
OKLCHoklch(59.15% 0.024 352.4)
XYZxyz(21.0281, 20.3689, 22.8984)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A787F #788A83
analogous
#8A7888 #8A787F #8A7A78
triadic
#8A787F #7F8A78 #787F8A
tetradic
#8A787F #888A78 #788A83 #7A788A
square
#8A787F #888A78 #788A83 #7A788A
split-complementary
#8A787F #788A7A #78888A
monochromatic
#493F43 #695B61 #8A787F #A6999E #C3BABD

Accessibility & contrast

On white

4.14
#8A787F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A787F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A787F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A787F#FFFFFF#000000##000000
##8A787F1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A7B7F
Deuteranopia (green-blind)
#7D7E7F
Tritanopia (blue-blind)
#8D787A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a787f;
/* rgb */ color: rgb(138, 120, 127);
/* oklch */ color: oklch(59.2% 0.024 352.4);
Tailwind
colors: {
  custom: {
    50: '#ac9fa4',
    500: '#8a787f',
    950: '#000000',
  },
}
SCSS
$custom: #8a787f;
$custom-light: #ac9fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a787f",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 336.667,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5915,
    "c": 0.02439,
    "h": 352.4
  },
  "luminance": 0.20369
}

Semantic roles & 50–950 ramp

primary
#8A787F
secondary
#ABB3B0
accent
#B09A78
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E0F
muted
#7F7E7F

Preview Lab

Preview with #8A787F

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

Preview Lab → · Contrast checker → · Palette generator →

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