#8A6DEC#8A6DEC

#8A6DEC is a light, vivid violet. Relative luminance 0.224; OKLCH L 62.4% C 0.184 H 290.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A6DEC
RGBrgb(138, 109, 236)
HSLhsl(254, 77%, 68%)
HSVhsv(254, 54%, 93%)
CMYKcmyk(41.5%, 53.8%, 0%, 7.5%)
CIE-LABlab(54.44, 40.85, -60.53)
CIE-LCHlch(54.44, 73.02, 304.02°)
OKLaboklab(62.42% 0.0647 -0.1721)
OKLCHoklch(62.42% 0.184 290.6)
XYZxyz(31.0860, 22.3957, 82.0255)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DEC #CFEC6D
analogous
#6D8FEC #8A6DEC #CA6DEC
triadic
#8A6DEC #EC8A6D #6DEC8A
tetradic
#8A6DEC #EC6D8F #CFEC6D #6DECCA
square
#8A6DEC #EC6D8F #CFEC6D #6DECCA
split-complementary
#8A6DEC #ECCA6D #8FEC6D
monochromatic
#411AC5 #5F37E5 #8A6DEC #B5A3F3 #E1D9FA

Accessibility & contrast

On white

3.83
#8A6DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8A6DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6DEC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6DEC#FFFFFF#000000##000000
##8A6DEC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E84F0
Deuteranopia (green-blind)
#347FE9
Tritanopia (blue-blind)
#6E88A2
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a6dec;
/* rgb */ color: rgb(138, 109, 236);
/* oklch */ color: oklch(62.4% 0.184 290.6);
Tailwind
colors: {
  custom: {
    50: '#b197f3',
    500: '#8a6dec',
    950: '#000000',
  },
}
SCSS
$custom: #8a6dec;
$custom-light: #b197f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6dec",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 236
  },
  "hsl": {
    "h": 253.701,
    "s": 76.97,
    "l": 67.647
  },
  "oklch": {
    "l": 0.62415,
    "c": 0.18382,
    "h": 290.6
  },
  "luminance": 0.22397
}

Semantic roles & 50–950 ramp

primary
#8A6DEC
secondary
#E5EEC7
accent
#D90CAA
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #8A6DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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