#8A6799#8A6799

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

Color values

HEX#8A6799
RGBrgb(138, 103, 153)
HSLhsl(282, 20%, 50%)
HSVhsv(282, 33%, 60%)
CMYKcmyk(9.8%, 32.7%, 0%, 40%)
CIE-LABlab(48.77, 23.50, -21.83)
CIE-LCHlch(48.77, 32.07, 317.10°)
OKLaboklab(56.76% 0.0607 -0.0597)
OKLCHoklch(56.76% 0.085 315.5)
XYZxyz(21.0804, 17.4041, 32.3796)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6799 #769967
analogous
#716799 #8A6799 #99678F
triadic
#8A6799 #998A67 #67998A
tetradic
#8A6799 #997167 #769967 #678F99
square
#8A6799 #997167 #769967 #678F99
split-complementary
#8A6799 #8F9967 #679971
monochromatic
#483650 #694E75 #8A6799 #A68CB2 #C2B0CA

Accessibility & contrast

On white

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

On black

4.48
#8A6799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A6799#FFFFFF#000000##FFFFFF
##8A67991.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60729B
Deuteranopia (green-blind)
#687597
Tritanopia (blue-blind)
#896D79
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a6799;
/* rgb */ color: rgb(138, 103, 153);
/* oklch */ color: oklch(56.8% 0.085 315.5);
Tailwind
colors: {
  custom: {
    50: '#ad93b7',
    500: '#8a6799',
    950: '#000000',
  },
}
SCSS
$custom: #8a6799;
$custom-light: #ad93b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6799",
  "rgb": {
    "r": 138,
    "g": 103,
    "b": 153
  },
  "hsl": {
    "h": 282,
    "s": 19.685,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56763,
    "c": 0.08517,
    "h": 315.5
  },
  "luminance": 0.17404
}

Semantic roles & 50–950 ramp

primary
#8A6799
secondary
#A9B9A3
accent
#BC6C84
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D11
muted
#7F7E80

Preview Lab

Preview with #8A6799

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

Preview Lab → · Contrast checker → · Palette generator →

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