#8A787E#8A787E

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

Color values

HEX#8A787E
RGBrgb(138, 120, 126)
HSLhsl(340, 7%, 51%)
HSVhsv(340, 13%, 54%)
CMYKcmyk(0%, 13%, 8.7%, 45.9%)
CIE-LABlab(52.22, 8.03, -0.72)
CIE-LCHlch(52.22, 8.06, 354.91°)
OKLaboklab(59.12% 0.0238 -0.0018)
OKLCHoklch(59.12% 0.024 355.7)
XYZxyz(20.9633, 20.3430, 22.5569)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A787E #788A84
analogous
#8A7887 #8A787E #8A7B78
triadic
#8A787E #7E8A78 #787E8A
tetradic
#8A787E #878A78 #788A84 #7B788A
square
#8A787E #878A78 #788A84 #7B788A
split-complementary
#8A787E #788A7B #78878A
monochromatic
#493F42 #695B60 #8A787E #A6999D #C3BABD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A787E#FFFFFF#000000##000000
##8A787E1.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)
#7A7B7E
Deuteranopia (green-blind)
#7E7E7E
Tritanopia (blue-blind)
#8D777A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a787e;
/* rgb */ color: rgb(138, 120, 126);
/* oklch */ color: oklch(59.1% 0.024 355.7);
Tailwind
colors: {
  custom: {
    50: '#ac9fa3',
    500: '#8a787e',
    950: '#000000',
  },
}
SCSS
$custom: #8a787e;
$custom-light: #ac9fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a787e",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 126
  },
  "hsl": {
    "h": 340,
    "s": 7.143,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59118,
    "c": 0.02384,
    "h": 355.7
  },
  "luminance": 0.20343
}

Semantic roles & 50–950 ramp

primary
#8A787E
secondary
#ABB3B0
accent
#B09D78
background
#FAF9FA
surface
#F4F2F3
border
#CECCCD
text
#100E0F
muted
#7F7E7F

Preview Lab

Preview with #8A787E

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

Preview Lab → · Contrast checker → · Palette generator →

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