#8A6797#8A6797

#8A6797 is a mid, moderate purple. Relative luminance 0.173; OKLCH L 56.7% C 0.083 H 316.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A6797
RGBrgb(138, 103, 151)
HSLhsl(284, 19%, 50%)
HSVhsv(284, 32%, 59%)
CMYKcmyk(8.6%, 31.8%, 0%, 40.8%)
CIE-LABlab(48.68, 23.06, -20.78)
CIE-LCHlch(48.68, 31.04, 317.98°)
OKLaboklab(56.67% 0.0602 -0.0567)
OKLCHoklch(56.67% 0.083 316.7)
XYZxyz(20.9166, 17.3386, 31.5170)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6797 #749767
analogous
#726797 #8A6797 #97678C
triadic
#8A6797 #978A67 #67978A
tetradic
#8A6797 #977267 #749767 #678C97
square
#8A6797 #977267 #749767 #678C97
split-complementary
#8A6797 #8C9767 #679772
monochromatic
#47354E #694E73 #8A6797 #A68BB0 #C2B0C9

Accessibility & contrast

On white

4.70
#8A6797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A6797
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6797#FFFFFF#000000##FFFFFF
##8A67971.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#607199
Deuteranopia (green-blind)
#687595
Tritanopia (blue-blind)
#8A6D78
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a6797;
/* rgb */ color: rgb(138, 103, 151);
/* oklch */ color: oklch(56.7% 0.083 316.7);
Tailwind
colors: {
  custom: {
    50: '#ad93b5',
    500: '#8a6797',
    950: '#000000',
  },
}
SCSS
$custom: #8a6797;
$custom-light: #ad93b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6797",
  "rgb": {
    "r": 138,
    "g": 103,
    "b": 151
  },
  "hsl": {
    "h": 283.75,
    "s": 18.898,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.08269,
    "h": 316.7
  },
  "luminance": 0.17338
}

Semantic roles & 50–950 ramp

primary
#8A6797
secondary
#A8B8A2
accent
#BC6C82
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D11
muted
#7F7E80

Preview Lab

Preview with #8A6797

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

Preview Lab → · Contrast checker → · Palette generator →

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