#8A6CD6#8A6CD6

#8A6CD6 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 60.9% C 0.157 H 294.3°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A6CD6
RGBrgb(138, 108, 214)
HSLhsl(257, 56%, 63%)
HSVhsv(257, 50%, 84%)
CMYKcmyk(35.5%, 49.5%, 0%, 16.1%)
CIE-LABlab(52.93, 35.49, -50.57)
CIE-LCHlch(52.93, 61.78, 305.06°)
OKLaboklab(60.87% 0.0645 -0.1429)
OKLCHoklch(60.87% 0.157 294.3)
XYZxyz(27.9783, 20.9829, 66.1813)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CD6 #B8D66C
analogous
#6C83D6 #8A6CD6 #BF6CD6
triadic
#8A6CD6 #D68A6C #6CD68A
tetradic
#8A6CD6 #D66C83 #B8D66C #6CD6BF
square
#8A6CD6 #D66C83 #B8D66C #6CD6BF
split-complementary
#8A6CD6 #D6BF6C #83D66C
monochromatic
#4B2C9C #643CC9 #8A6CD6 #B09CE3 #D6CCF1

Accessibility & contrast

On white

4.04
#8A6CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8A6CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CD6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CD6#FFFFFF#000000##000000
##8A6CD61.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#457FDA
Deuteranopia (green-blind)
#4A7DD4
Tritanopia (blue-blind)
#788197
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6cd6;
/* rgb */ color: rgb(138, 108, 214);
/* oklch */ color: oklch(60.9% 0.157 294.3);
Tailwind
colors: {
  custom: {
    50: '#b096e3',
    500: '#8a6cd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6cd6;
$custom-light: #b096e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6cd6",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 214
  },
  "hsl": {
    "h": 256.981,
    "s": 56.383,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60874,
    "c": 0.15676,
    "h": 294.3
  },
  "luminance": 0.20983
}

Semantic roles & 50–950 ramp

primary
#8A6CD6
secondary
#D7E2BC
accent
#C42296
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D15
muted
#807E84

Preview Lab

Preview with #8A6CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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