#8A6DCA#8A6DCA

#8A6DCA is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.4% C 0.139 H 296.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A6DCA
RGBrgb(138, 109, 202)
HSLhsl(259, 47%, 61%)
HSVhsv(259, 46%, 79%)
CMYKcmyk(31.7%, 46%, 0%, 20.8%)
CIE-LABlab(52.51, 31.77, -44.41)
CIE-LCHlch(52.51, 54.60, 305.58°)
OKLaboklab(60.35% 0.0619 -0.1248)
OKLCHoklch(60.35% 0.139 296.4)
XYZxyz(26.6079, 20.6045, 58.4409)
Luminance0.2061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DCA #ADCA6D
analogous
#6D7ECA #8A6DCA #B86DCA
triadic
#8A6DCA #CA8A6D #6DCA8A
tetradic
#8A6DCA #CA6D7E #ADCA6D #6DCAB8
square
#8A6DCA #CA6D7E #ADCA6D #6DCAB8
split-complementary
#8A6DCA #CAB86D #7ECA6D
monochromatic
#4E328A #6743B7 #8A6DCA #AE9ADA #D2C7EB

Accessibility & contrast

On white

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

On black

5.12
#8A6DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DCA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DCA#FFFFFF#000000##000000
##8A6DCA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7ECD
Deuteranopia (green-blind)
#557CC8
Tritanopia (blue-blind)
#7C7E92
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a6dca;
/* rgb */ color: rgb(138, 109, 202);
/* oklch */ color: oklch(60.4% 0.139 296.4);
Tailwind
colors: {
  custom: {
    50: '#af97da',
    500: '#8a6dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dca;
$custom-light: #af97da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dca",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 202
  },
  "hsl": {
    "h": 258.71,
    "s": 46.734,
    "l": 60.98
  },
  "oklch": {
    "l": 0.6035,
    "c": 0.13934,
    "h": 296.4
  },
  "luminance": 0.20605
}

Semantic roles & 50–950 ramp

primary
#8A6DCA
secondary
#D0DBB8
accent
#BA2C8E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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