#8A7F8A#8A7F8A

#8A7F8A is a mid, muted grey. Relative luminance 0.224; OKLCH L 61.0% C 0.021 H 325.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A7F8A
RGBrgb(138, 127, 138)
HSLhsl(300, 4%, 52%)
HSVhsv(300, 8%, 54%)
CMYKcmyk(0%, 8%, 0%, 45.9%)
CIE-LABlab(54.47, 6.29, -4.42)
CIE-LCHlch(54.47, 7.69, 324.86°)
OKLaboklab(60.99% 0.0173 -0.0117)
OKLCHoklch(60.99% 0.021 325.8)
XYZxyz(22.6574, 22.4172, 27.1732)
Luminance0.2242 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F8A #7F8A7F
analogous
#857F8A #8A7F8A #8A7F85
triadic
#8A7F8A #8A8A7F #7F8A8A
tetradic
#8A7F8A #8A857F #7F8A7F #7F858A
square
#8A7F8A #8A857F #7F8A7F #7F858A
split-complementary
#8A7F8A #858A7F #7F8A85
monochromatic
#4B444B #6A616A #8A7F8A #A79FA7 #C4BFC4

Accessibility & contrast

On white

3.83
#8A7F8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8A7F8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F8A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F8A#FFFFFF#000000##000000
##8A7F8A1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E818B
Deuteranopia (green-blind)
#81838A
Tritanopia (blue-blind)
#8B8083
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a7f8a;
/* rgb */ color: rgb(138, 127, 138);
/* oklch */ color: oklch(61.0% 0.021 325.8);
Tailwind
colors: {
  custom: {
    50: '#aca4ac',
    500: '#8a7f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f8a;
$custom-light: #aca4ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f8a",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 4.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.0209,
    "h": 325.8
  },
  "luminance": 0.22417
}

Semantic roles & 50–950 ramp

primary
#8A7F8A
secondary
#B0B5B0
accent
#AE7A7A
background
#FAFAFA
surface
#F4F4F4
border
#CECECE
text
#100F10
muted
#7F7F7F

Preview Lab

Preview with #8A7F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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