#8A6798#8A6798

#8A6798 is a mid, moderate purple. Relative luminance 0.174; OKLCH L 56.7% C 0.084 H 316.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8A6798
RGBrgb(138, 103, 152)
HSLhsl(283, 19%, 50%)
HSVhsv(283, 32%, 60%)
CMYKcmyk(9.2%, 32.2%, 0%, 40.4%)
CIE-LABlab(48.72, 23.28, -21.30)
CIE-LCHlch(48.72, 31.55, 317.54°)
OKLaboklab(56.72% 0.0604 -0.0582)
OKLCHoklch(56.72% 0.084 316.1)
XYZxyz(20.9981, 17.3712, 31.9465)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6798 #759867
analogous
#716798 #8A6798 #98678E
triadic
#8A6798 #988A67 #67988A
tetradic
#8A6798 #987167 #759867 #678E98
square
#8A6798 #987167 #759867 #678E98
split-complementary
#8A6798 #8E9867 #679871
monochromatic
#48364F #694E74 #8A6798 #A68BB1 #C2B0C9

Accessibility & contrast

On white

4.69
#8A6798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A6798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A6798
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6798#FFFFFF#000000##FFFFFF
##8A67981.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60729A
Deuteranopia (green-blind)
#687596
Tritanopia (blue-blind)
#8A6D79
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a6798;
/* rgb */ color: rgb(138, 103, 152);
/* oklch */ color: oklch(56.7% 0.084 316.1);
Tailwind
colors: {
  custom: {
    50: '#ad93b6',
    500: '#8a6798',
    950: '#000000',
  },
}
SCSS
$custom: #8a6798;
$custom-light: #ad93b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6798",
  "rgb": {
    "r": 138,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 282.857,
    "s": 19.216,
    "l": 50
  },
  "oklch": {
    "l": 0.56718,
    "c": 0.08393,
    "h": 316.1
  },
  "luminance": 0.17371
}

Semantic roles & 50–950 ramp

primary
#8A6798
secondary
#A9B8A2
accent
#BC6C83
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D11
muted
#7F7E80

Preview Lab

Preview with #8A6798

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

Preview Lab → · Contrast checker → · Palette generator →

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