#8D798E#8D798E

#8D798E is a mid, muted purple. Relative luminance 0.213; OKLCH L 60.2% C 0.039 H 324.6°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8D798E
RGBrgb(141, 121, 142)
HSLhsl(297, 9%, 52%)
HSVhsv(297, 15%, 56%)
CMYKcmyk(0.7%, 14.8%, 0%, 44.3%)
CIE-LABlab(53.27, 11.67, -8.51)
CIE-LCHlch(53.27, 14.45, 323.90°)
OKLaboklab(60.16% 0.032 -0.0227)
OKLCHoklch(60.16% 0.039 324.6)
XYZxyz(22.7037, 21.2908, 28.4995)
Luminance0.2129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D798E #7A8E79
analogous
#83798E #8D798E #8E7985
triadic
#8D798E #8E8D79 #798E8D
tetradic
#8D798E #8E8379 #7A8E79 #79858E
square
#8D798E #8E8379 #7A8E79 #79858E
split-complementary
#8D798E #858E79 #798E83
monochromatic
#4C404C #6D5C6D #8D798E #A99AAA #C5BBC6

Accessibility & contrast

On white

3.99
#8D798E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8D798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D798E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D798E#FFFFFF#000000##000000
##8D798E1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#787E8F
Deuteranopia (green-blind)
#7C808D
Tritanopia (blue-blind)
#8E7B80
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8d798e;
/* rgb */ color: rgb(141, 121, 142);
/* oklch */ color: oklch(60.2% 0.039 324.6);
Tailwind
colors: {
  custom: {
    50: '#ae9faf',
    500: '#8d798e',
    950: '#000000',
  },
}
SCSS
$custom: #8d798e;
$custom-light: #ae9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d798e",
  "rgb": {
    "r": 141,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 297.143,
    "s": 8.502,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60159,
    "c": 0.03923,
    "h": 324.6
  },
  "luminance": 0.2129
}

Semantic roles & 50–950 ramp

primary
#8D798E
secondary
#ADB6AD
accent
#B27679
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8D798E

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

Preview Lab → · Contrast checker → · Palette generator →

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