#8A6CA7#8A6CA7

#8A6CA7 is a mid, moderate violet. Relative luminance 0.189; OKLCH L 58.3% C 0.094 H 307.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A6CA7
RGBrgb(138, 108, 167)
HSLhsl(271, 25%, 54%)
HSVhsv(271, 35%, 65%)
CMYKcmyk(17.4%, 35.3%, 0%, 34.5%)
CIE-LABlab(50.59, 23.72, -27.22)
CIE-LCHlch(50.59, 36.11, 311.06°)
OKLaboklab(58.35% 0.0566 -0.0751)
OKLCHoklch(58.35% 0.094 307)
XYZxyz(22.8175, 18.9186, 39.0013)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CA7 #89A76C
analogous
#6D6CA7 #8A6CA7 #A76CA7
triadic
#8A6CA7 #A78A6C #6CA78A
tetradic
#8A6CA7 #A76D6C #89A76C #6CA7A7
square
#8A6CA7 #A76D6C #89A76C #6CA7A7
split-complementary
#8A6CA7 #A7A76C #6CA76D
monochromatic
#4D395F #6B5086 #8A6CA7 #A892BE #C7B9D5

Accessibility & contrast

On white

4.39
#8A6CA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8A6CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CA7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CA7#FFFFFF#000000##000000
##8A6CA71.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077A9
Deuteranopia (green-blind)
#6779A5
Tritanopia (blue-blind)
#867582
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a6ca7;
/* rgb */ color: rgb(138, 108, 167);
/* oklch */ color: oklch(58.3% 0.094 307.0);
Tailwind
colors: {
  custom: {
    50: '#ad96c1',
    500: '#8a6ca7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ca7;
$custom-light: #ad96c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ca7",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 167
  },
  "hsl": {
    "h": 270.508,
    "s": 25.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58347,
    "c": 0.09408,
    "h": 307
  },
  "luminance": 0.18918
}

Semantic roles & 50–950 ramp

primary
#8A6CA7
secondary
#B7C4AB
accent
#C26693
background
#FAF9FB
surface
#F4F2F7
border
#CECCD0
text
#100D12
muted
#7F7E81

Preview Lab

Preview with #8A6CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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