#8A6DE2#8A6DE2

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

Color values

HEX#8A6DE2
RGBrgb(138, 109, 226)
HSLhsl(255, 67%, 66%)
HSVhsv(255, 52%, 89%)
CMYKcmyk(38.9%, 51.8%, 0%, 11.4%)
CIE-LABlab(53.85, 38.13, -55.88)
CIE-LCHlch(53.85, 67.65, 304.31°)
OKLaboklab(61.78% 0.0642 -0.1584)
OKLCHoklch(61.78% 0.171 292.1)
XYZxyz(29.6737, 21.8308, 74.5871)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6DE2 #C5E26D
analogous
#6D8AE2 #8A6DE2 #C46DE2
triadic
#8A6DE2 #E28A6D #6DE28A
tetradic
#8A6DE2 #E26D8A #C5E26D #6DE2C4
square
#8A6DE2 #E26D8A #C5E26D #6DE2C4
split-complementary
#8A6DE2 #E2C46D #8AE26D
monochromatic
#4623B1 #613AD8 #8A6DE2 #B3A0EC #DCD3F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A6DE2#FFFFFF#000000##000000
##8A6DE21.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)
#3B82E6
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#73859D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6de2;
/* rgb */ color: rgb(138, 109, 226);
/* oklch */ color: oklch(61.8% 0.171 292.1);
Tailwind
colors: {
  custom: {
    50: '#b197ec',
    500: '#8a6de2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6de2;
$custom-light: #b197ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6de2",
  "rgb": {
    "r": 138,
    "g": 109,
    "b": 226
  },
  "hsl": {
    "h": 254.872,
    "s": 66.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61779,
    "c": 0.17094,
    "h": 292.1
  },
  "luminance": 0.21832
}

Semantic roles & 50–950 ramp

primary
#8A6DE2
secondary
#DFE9C2
accent
#CF17A1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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