#8A6CE6#8A6CE6

#8A6CE6 is a mid, vivid violet. Relative luminance 0.218; OKLCH L 61.9% C 0.178 H 291.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8A6CE6
RGBrgb(138, 108, 230)
HSLhsl(255, 71%, 66%)
HSVhsv(255, 53%, 90%)
CMYKcmyk(40%, 53%, 0%, 9.8%)
CIE-LABlab(53.86, 39.79, -58.11)
CIE-LCHlch(53.86, 70.42, 304.40°)
OKLaboklab(61.86% 0.0656 -0.165)
OKLCHoklch(61.86% 0.178 291.7)
XYZxyz(30.1229, 21.8407, 77.4761)
Luminance0.2184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CE6 #C8E66C
analogous
#6C8BE6 #8A6CE6 #C76CE6
triadic
#8A6CE6 #E68A6C #6CE68A
tetradic
#8A6CE6 #E66C8B #C8E66C #6CE6C7
square
#8A6CE6 #E66C8B #C8E66C #6CE6C7
split-complementary
#8A6CE6 #E6C76C #8BE66C
monochromatic
#451FB8 #6038DD #8A6CE6 #B4A0EF #DDD5F8

Accessibility & contrast

On white

3.91
#8A6CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8A6CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CE6
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CE6#FFFFFF#000000##000000
##8A6CE61.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3483EA
Deuteranopia (green-blind)
#3A7EE3
Tritanopia (blue-blind)
#71859F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6ce6;
/* rgb */ color: rgb(138, 108, 230);
/* oklch */ color: oklch(61.9% 0.178 291.7);
Tailwind
colors: {
  custom: {
    50: '#b197ee',
    500: '#8a6ce6',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ce6;
$custom-light: #b197ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ce6",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 230
  },
  "hsl": {
    "h": 254.754,
    "s": 70.93,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.17754,
    "h": 291.7
  },
  "luminance": 0.21842
}

Semantic roles & 50–950 ramp

primary
#8A6CE6
secondary
#E1EBC3
accent
#D313A4
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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