#8A798E#8A798E

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

Color values

HEX#8A798E
RGBrgb(138, 121, 142)
HSLhsl(289, 9%, 52%)
HSVhsv(289, 15%, 56%)
CMYKcmyk(2.8%, 14.8%, 0%, 44.3%)
CIE-LABlab(52.98, 10.58, -8.96)
CIE-LCHlch(52.98, 13.87, 319.73°)
OKLaboklab(59.87% 0.0284 -0.024)
OKLCHoklch(59.87% 0.037 319.8)
XYZxyz(22.2004, 21.0313, 28.4759)
Luminance0.2103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A798E #7D8E79
analogous
#80798E #8A798E #8E7988
triadic
#8A798E #8E8A79 #798E8A
tetradic
#8A798E #8E8079 #7D8E79 #79888E
square
#8A798E #8E8079 #7D8E79 #79888E
split-complementary
#8A798E #888E79 #798E80
monochromatic
#4A404C #6A5C6D #8A798E #A79AAA #C4BBC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A798E#FFFFFF#000000##000000
##8A798E1.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)
#777D8F
Deuteranopia (green-blind)
#7A7F8D
Tritanopia (blue-blind)
#8A7B80
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a798e;
/* rgb */ color: rgb(138, 121, 142);
/* oklch */ color: oklch(59.9% 0.037 319.8);
Tailwind
colors: {
  custom: {
    50: '#ac9faf',
    500: '#8a798e',
    950: '#000000',
  },
}
SCSS
$custom: #8a798e;
$custom-light: #ac9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a798e",
  "rgb": {
    "r": 138,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 288.571,
    "s": 8.502,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59873,
    "c": 0.03719,
    "h": 319.8
  },
  "luminance": 0.21031
}

Semantic roles & 50–950 ramp

primary
#8A798E
secondary
#AFB6AD
accent
#B27682
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#100E10
muted
#7F7E7F

Preview Lab

Preview with #8A798E

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

Preview Lab → · Contrast checker → · Palette generator →

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