#8A6795#8A6795

#8A6795 is a mid, moderate purple. Relative luminance 0.173; OKLCH L 56.6% C 0.080 H 317.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A6795
RGBrgb(138, 103, 149)
HSLhsl(286, 18%, 49%)
HSVhsv(286, 31%, 58%)
CMYKcmyk(7.4%, 30.9%, 0%, 41.6%)
CIE-LABlab(48.60, 22.63, -19.72)
CIE-LCHlch(48.60, 30.01, 318.94°)
OKLaboklab(56.59% 0.0596 -0.0537)
OKLCHoklch(56.59% 0.08 317.9)
XYZxyz(20.7555, 17.2741, 30.6688)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6795 #729567
analogous
#736795 #8A6795 #956789
triadic
#8A6795 #958A67 #67958A
tetradic
#8A6795 #957367 #729567 #678995
square
#8A6795 #957367 #729567 #678995
split-complementary
#8A6795 #899567 #679573
monochromatic
#47354D #684E71 #8A6795 #A68BAF #C2AFC8

Accessibility & contrast

On white

4.71
#8A6795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A6795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A6795
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6795#FFFFFF#000000##FFFFFF
##8A67951.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#617197
Deuteranopia (green-blind)
#697594
Tritanopia (blue-blind)
#8A6C78
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a6795;
/* rgb */ color: rgb(138, 103, 149);
/* oklch */ color: oklch(56.6% 0.080 317.9);
Tailwind
colors: {
  custom: {
    50: '#ac92b4',
    500: '#8a6795',
    950: '#000000',
  },
}
SCSS
$custom: #8a6795;
$custom-light: #ac92b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6795",
  "rgb": {
    "r": 138,
    "g": 103,
    "b": 149
  },
  "hsl": {
    "h": 285.652,
    "s": 18.254,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56586,
    "c": 0.08023,
    "h": 317.9
  },
  "luminance": 0.17274
}

Semantic roles & 50–950 ramp

primary
#8A6795
secondary
#A6B7A1
accent
#BB6D80
background
#FAF9FB
surface
#F4F1F6
border
#CECBD0
text
#100D11
muted
#7F7E80

Preview Lab

Preview with #8A6795

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

Preview Lab → · Contrast checker → · Palette generator →

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