#8A6CDD#8A6CDD

#8A6CDD is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.3% C 0.166 H 293.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A6CDD
RGBrgb(138, 108, 221)
HSLhsl(256, 62%, 65%)
HSVhsv(256, 51%, 87%)
CMYKcmyk(37.6%, 51.1%, 0%, 13.3%)
CIE-LABlab(53.33, 37.36, -53.89)
CIE-LCHlch(53.33, 65.57, 304.73°)
OKLaboklab(61.3% 0.0651 -0.1526)
OKLCHoklch(61.3% 0.166 293.1)
XYZxyz(28.8915, 21.3482, 70.9910)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CDD #BFDD6C
analogous
#6C87DD #8A6CDD #C26CDD
triadic
#8A6CDD #DD8A6C #6CDD8A
tetradic
#8A6CDD #DD6C87 #BFDD6C #6CDDC2
square
#8A6CDD #DD6C87 #BFDD6C #6CDDC2
split-complementary
#8A6CDD #DDC26C #87DD6C
monochromatic
#4927A8 #623AD2 #8A6CDD #B29EE8 #D9CFF4

Accessibility & contrast

On white

3.98
#8A6CDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#8A6CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CDD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CDD#FFFFFF#000000##000000
##8A6CDD1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E81E1
Deuteranopia (green-blind)
#447DDA
Tritanopia (blue-blind)
#75839A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a6cdd;
/* rgb */ color: rgb(138, 108, 221);
/* oklch */ color: oklch(61.3% 0.166 293.1);
Tailwind
colors: {
  custom: {
    50: '#b097e8',
    500: '#8a6cdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cdd;
$custom-light: #b097e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cdd",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 221
  },
  "hsl": {
    "h": 255.929,
    "s": 62.431,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61299,
    "c": 0.16591,
    "h": 293.1
  },
  "luminance": 0.21349
}

Semantic roles & 50–950 ramp

primary
#8A6CDD
secondary
#DCE6BF
accent
#CA1B9C
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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