#8A6EC6#8A6EC6

#8A6EC6 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.3% C 0.132 H 296.9°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A6EC6
RGBrgb(138, 110, 198)
HSLhsl(259, 44%, 60%)
HSVhsv(259, 44%, 78%)
CMYKcmyk(30.3%, 44.4%, 0%, 22.4%)
CIE-LABlab(52.54, 30.15, -42.07)
CIE-LCHlch(52.54, 51.76, 305.63°)
OKLaboklab(60.31% 0.0599 -0.118)
OKLCHoklch(60.31% 0.132 296.9)
XYZxyz(26.2477, 20.6320, 56.0147)
Luminance0.2063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6EC6 #AAC66E
analogous
#6E7EC6 #8A6EC6 #B66EC6
triadic
#8A6EC6 #C68A6E #6EC68A
tetradic
#8A6EC6 #C66E7E #AAC66E #6EC6B6
square
#8A6EC6 #C66E7E #AAC66E #6EC6B6
split-complementary
#8A6EC6 #C6B66E #7EC66E
monochromatic
#4E3485 #6846B1 #8A6EC6 #AD9AD7 #D1C6E9

Accessibility & contrast

On white

4.10
#8A6EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#8A6EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6EC6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6EC6#FFFFFF#000000##000000
##8A6EC61.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#537EC9
Deuteranopia (green-blind)
#597CC4
Tritanopia (blue-blind)
#7D7E90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6ec6;
/* rgb */ color: rgb(138, 110, 198);
/* oklch */ color: oklch(60.3% 0.132 296.9);
Tailwind
colors: {
  custom: {
    50: '#ae98d8',
    500: '#8a6ec6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ec6;
$custom-light: #ae98d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ec6",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 259.091,
    "s": 43.564,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60306,
    "c": 0.13239,
    "h": 296.9
  },
  "luminance": 0.20632
}

Semantic roles & 50–950 ramp

primary
#8A6EC6
secondary
#CED9B7
accent
#B72F8B
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83

Preview Lab

Preview with #8A6EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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