#8E7C8A#8E7C8A

#8E7C8A is a mid, muted grey. Relative luminance 0.220; OKLCH L 60.7% C 0.030 H 333.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8E7C8A
RGBrgb(142, 124, 138)
HSLhsl(313, 7%, 52%)
HSVhsv(313, 13%, 56%)
CMYKcmyk(0%, 12.7%, 2.8%, 44.3%)
CIE-LABlab(54.03, 9.50, -5.03)
CIE-LCHlch(54.03, 10.75, 332.10°)
OKLaboklab(60.73% 0.0268 -0.0133)
OKLCHoklch(60.73% 0.03 333.6)
XYZxyz(22.9499, 22.0014, 27.0775)
Luminance0.2200 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7C8A #7C8E80
analogous
#897C8E #8E7C8A #8E7C81
triadic
#8E7C8A #8A8E7C #7C8A8E
tetradic
#8E7C8A #8E897C #7C8E80 #7C818E
square
#8E7C8A #8E897C #7C8E80 #7C818E
split-complementary
#8E7C8A #818E7C #7C8E89
monochromatic
#4D434B #6E5F6B #8E7C8A #AA9DA7 #C7BEC5

Accessibility & contrast

On white

3.89
#8E7C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8E7C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7C8A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7C8A#FFFFFF#000000##000000
##8E7C8A1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C808B
Deuteranopia (green-blind)
#808289
Tritanopia (blue-blind)
#907D81
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e7c8a;
/* rgb */ color: rgb(142, 124, 138);
/* oklch */ color: oklch(60.7% 0.030 333.6);
Tailwind
colors: {
  custom: {
    50: '#afa2ac',
    500: '#8e7c8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e7c8a;
$custom-light: #afa2ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7c8a",
  "rgb": {
    "r": 142,
    "g": 124,
    "b": 138
  },
  "hsl": {
    "h": 313.333,
    "s": 7.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60731,
    "c": 0.02994,
    "h": 333.6
  },
  "luminance": 0.22001
}

Semantic roles & 50–950 ramp

primary
#8E7C8A
secondary
#AFB7B1
accent
#B08477
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100F10
muted
#7F7E7F

Preview Lab

Preview with #8E7C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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