#8A817C#8A817C

#8A817C is a mid, near-neutral grey. Relative luminance 0.226; OKLCH L 61.0% C 0.013 H 51.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A817C
RGBrgb(138, 129, 124)
HSLhsl(21, 6%, 51%)
HSVhsv(21, 10%, 54%)
CMYKcmyk(0%, 6.5%, 10.1%, 45.9%)
CIE-LABlab(54.62, 2.47, 3.93)
CIE-LCHlch(54.62, 4.64, 57.79°)
OKLaboklab(60.97% 0.0083 0.0104)
OKLCHoklch(60.97% 0.013 51.2)
XYZxyz(21.9692, 22.5593, 22.2619)
Luminance0.2256 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A817C #7C858A
analogous
#8A7C7E #8A817C #8A887C
triadic
#8A817C #7C8A81 #817C8A
tetradic
#8A817C #7E8A7C #7C858A #887C8A
square
#8A817C #7E8A7C #7C858A #887C8A
split-complementary
#8A817C #7C8A88 #7C7E8A
monochromatic
#4A4542 #6A635F #8A817C #A7A09C #C4BFBD

Accessibility & contrast

On white

3.81
#8A817C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#8A817C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A817C
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A817C#FFFFFF#000000##000000
##8A817C1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83827C
Deuteranopia (green-blind)
#85837C
Tritanopia (blue-blind)
#8D8080
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a817c;
/* rgb */ color: rgb(138, 129, 124);
/* oklch */ color: oklch(61.0% 0.013 51.2);
Tailwind
colors: {
  custom: {
    50: '#aca5a1',
    500: '#8a817c',
    950: '#000000',
  },
}
SCSS
$custom: #8a817c;
$custom-light: #aca5a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a817c",
  "rgb": {
    "r": 138,
    "g": 129,
    "b": 124
  },
  "hsl": {
    "h": 21.429,
    "s": 5.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.6097,
    "c": 0.01329,
    "h": 51.2
  },
  "luminance": 0.22559
}

Semantic roles & 50–950 ramp

primary
#8A817C
secondary
#AEB2B4
accent
#9CAF79
background
#FAFAF9
surface
#F4F4F2
border
#CECECC
text
#100F0F
muted
#7F7F7E

Preview Lab

Preview with #8A817C

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

Preview Lab → · Contrast checker → · Palette generator →

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