#8A7E8A#8A7E8A

#8A7E8A is a mid, muted grey. Relative luminance 0.222; OKLCH L 60.8% C 0.023 H 325.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A7E8A
RGBrgb(138, 126, 138)
HSLhsl(300, 5%, 52%)
HSVhsv(300, 9%, 54%)
CMYKcmyk(0%, 8.7%, 0%, 45.9%)
CIE-LABlab(54.20, 6.86, -4.82)
CIE-LCHlch(54.20, 8.39, 324.90°)
OKLaboklab(60.77% 0.0189 -0.0128)
OKLCHoklch(60.77% 0.023 325.8)
XYZxyz(22.5289, 22.1602, 27.1303)
Luminance0.2216 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E8A #7E8A7E
analogous
#847E8A #8A7E8A #8A7E84
triadic
#8A7E8A #8A8A7E #7E8A8A
tetradic
#8A7E8A #8A847E #7E8A7E #7E848A
square
#8A7E8A #8A847E #7E8A7E #7E848A
split-complementary
#8A7E8A #848A7E #7E8A84
monochromatic
#4A434A #6A606A #8A7E8A #A79EA7 #C4BEC4

Accessibility & contrast

On white

3.87
#8A7E8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8A7E8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E8A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E8A#FFFFFF#000000##000000
##8A7E8A1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D818B
Deuteranopia (green-blind)
#80828A
Tritanopia (blue-blind)
#8B7F82
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a7e8a;
/* rgb */ color: rgb(138, 126, 138);
/* oklch */ color: oklch(60.8% 0.023 325.8);
Tailwind
colors: {
  custom: {
    50: '#aca3ac',
    500: '#8a7e8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e8a;
$custom-light: #aca3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e8a",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 4.878,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60774,
    "c": 0.02282,
    "h": 325.8
  },
  "luminance": 0.2216
}

Semantic roles & 50–950 ramp

primary
#8A7E8A
secondary
#AFB5AF
accent
#AE7A7A
background
#FAFAFA
surface
#F4F3F4
border
#CECDCE
text
#100F10
muted
#7F7F7F

Preview Lab

Preview with #8A7E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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