#8A798D#8A798D

#8A798D is a mid, muted purple. Relative luminance 0.210; OKLCH L 59.8% C 0.036 H 321.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A798D
RGBrgb(138, 121, 141)
HSLhsl(291, 8%, 51%)
HSVhsv(291, 14%, 55%)
CMYKcmyk(2.1%, 14.2%, 0%, 44.7%)
CIE-LABlab(52.95, 10.38, -8.43)
CIE-LCHlch(52.95, 13.37, 320.92°)
OKLaboklab(59.84% 0.028 -0.0225)
OKLCHoklch(59.84% 0.036 321.2)
XYZxyz(22.1256, 21.0014, 28.0822)
Luminance0.2100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798D #7C8D79
analogous
#80798D #8A798D #8D7986
triadic
#8A798D #8D8A79 #798D8A
tetradic
#8A798D #8D8079 #7C8D79 #79868D
square
#8A798D #8D8079 #7C8D79 #79868D
split-complementary
#8A798D #868D79 #798D80
monochromatic
#4A404B #6A5C6C #8A798D #A79AA9 #C4BBC5

Accessibility & contrast

On white

4.04
#8A798D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A798D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A798D
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A798D#FFFFFF#000000##000000
##8A798D1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#777D8E
Deuteranopia (green-blind)
#7B7F8C
Tritanopia (blue-blind)
#8B7B80
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a798d;
/* rgb */ color: rgb(138, 121, 141);
/* oklch */ color: oklch(59.8% 0.036 321.2);
Tailwind
colors: {
  custom: {
    50: '#ac9fae',
    500: '#8a798d',
    950: '#000000',
  },
}
SCSS
$custom: #8a798d;
$custom-light: #ac9fae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798d",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 141
  },
  "hsl": {
    "h": 291,
    "s": 8.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59837,
    "c": 0.03597,
    "h": 321.2
  },
  "luminance": 0.21001
}

Semantic roles & 50–950 ramp

primary
#8A798D
secondary
#AEB5AC
accent
#B1777F
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798D

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

Preview Lab → · Contrast checker → · Palette generator →

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