#8A798F#8A798F

#8A798F is a mid, muted purple. Relative luminance 0.211; OKLCH L 59.9% C 0.038 H 318.5°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A798F
RGBrgb(138, 121, 143)
HSLhsl(286, 9%, 52%)
HSVhsv(286, 15%, 56%)
CMYKcmyk(3.5%, 15.4%, 0%, 43.9%)
CIE-LABlab(53.02, 10.79, -9.50)
CIE-LCHlch(53.02, 14.37, 318.64°)
OKLaboklab(59.91% 0.0288 -0.0255)
OKLCHoklch(59.91% 0.038 318.5)
XYZxyz(22.2758, 21.0614, 28.8730)
Luminance0.2106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798F #7E8F79
analogous
#7F798F #8A798F #8F7989
triadic
#8A798F #8F8A79 #798F8A
tetradic
#8A798F #8F7F79 #7E8F79 #79898F
square
#8A798F #8F7F79 #7E8F79 #79898F
split-complementary
#8A798F #898F79 #798F7F
monochromatic
#4A404D #6A5C6E #8A798F #A79AAB #C4BCC7

Accessibility & contrast

On white

4.03
#8A798F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8A798F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A798F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A798F#FFFFFF#000000##000000
##8A798F1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#777D90
Deuteranopia (green-blind)
#7A7F8E
Tritanopia (blue-blind)
#8A7B80
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a798f;
/* rgb */ color: rgb(138, 121, 143);
/* oklch */ color: oklch(59.9% 0.038 318.5);
Tailwind
colors: {
  custom: {
    50: '#ac9faf',
    500: '#8a798f',
    950: '#000000',
  },
}
SCSS
$custom: #8a798f;
$custom-light: #ac9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798f",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 143
  },
  "hsl": {
    "h": 286.364,
    "s": 8.943,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59909,
    "c": 0.03842,
    "h": 318.5
  },
  "luminance": 0.21061
}

Semantic roles & 50–950 ramp

primary
#8A798F
secondary
#AFB7AD
accent
#B27684
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798F

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

Preview Lab → · Contrast checker → · Palette generator →

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