#8A6CEB#8A6CEB

#8A6CEB is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.2% C 0.184 H 291.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A6CEB
RGBrgb(138, 108, 235)
HSLhsl(254, 76%, 67%)
HSVhsv(254, 54%, 92%)
CMYKcmyk(41.3%, 54%, 0%, 7.8%)
CIE-LABlab(54.16, 41.15, -60.42)
CIE-LCHlch(54.16, 73.10, 304.26°)
OKLaboklab(62.18% 0.0658 -0.1718)
OKLCHoklch(62.18% 0.184 291)
XYZxyz(30.8351, 22.1256, 81.2272)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CEB #CDEB6C
analogous
#6C8EEB #8A6CEB #C96CEB
triadic
#8A6CEB #EB8A6C #6CEB8A
tetradic
#8A6CEB #EB6C8E #CDEB6C #6CEBC9
square
#8A6CEB #EB6C8E #CDEB6C #6CEBC9
split-complementary
#8A6CEB #EBC96C #8EEB6C
monochromatic
#421AC2 #5F36E4 #8A6CEB #B5A2F2 #E0D8FA

Accessibility & contrast

On white

3.87
#8A6CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8A6CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CEB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CEB#FFFFFF#000000##000000
##8A6CEB1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D84EF
Deuteranopia (green-blind)
#337FE8
Tritanopia (blue-blind)
#6F87A1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6ceb;
/* rgb */ color: rgb(138, 108, 235);
/* oklch */ color: oklch(62.2% 0.184 291.0);
Tailwind
colors: {
  custom: {
    50: '#b197f2',
    500: '#8a6ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ceb;
$custom-light: #b197f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ceb",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 235
  },
  "hsl": {
    "h": 254.173,
    "s": 76.048,
    "l": 67.255
  },
  "oklch": {
    "l": 0.62184,
    "c": 0.18394,
    "h": 291
  },
  "luminance": 0.22127
}

Semantic roles & 50–950 ramp

primary
#8A6CEB
secondary
#E4EDC5
accent
#D80DA8
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A6CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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