#8A6CE7#8A6CE7

#8A6CE7 is a mid, vivid violet. Relative luminance 0.219; OKLCH L 61.9% C 0.179 H 291.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A6CE7
RGBrgb(138, 108, 231)
HSLhsl(255, 72%, 66%)
HSVhsv(255, 53%, 91%)
CMYKcmyk(40.3%, 53.2%, 0%, 9.4%)
CIE-LABlab(53.92, 40.06, -58.57)
CIE-LCHlch(53.92, 70.96, 304.37°)
OKLaboklab(61.93% 0.0657 -0.1663)
OKLCHoklch(61.93% 0.179 291.5)
XYZxyz(30.2637, 21.8971, 78.2178)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CE7 #C9E76C
analogous
#6C8CE7 #8A6CE7 #C86CE7
triadic
#8A6CE7 #E78A6C #6CE78A
tetradic
#8A6CE7 #E76C8C #C9E76C #6CE7C8
square
#8A6CE7 #E76C8C #C9E76C #6CE7C8
split-complementary
#8A6CE7 #E7C86C #8CE76C
monochromatic
#441EBA #6037DE #8A6CE7 #B4A1F0 #DED5F8

Accessibility & contrast

On white

3.90
#8A6CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#8A6CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CE7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CE7#FFFFFF#000000##000000
##8A6CE71.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3383EB
Deuteranopia (green-blind)
#397EE4
Tritanopia (blue-blind)
#71869F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a6ce7;
/* rgb */ color: rgb(138, 108, 231);
/* oklch */ color: oklch(61.9% 0.179 291.5);
Tailwind
colors: {
  custom: {
    50: '#b197ef',
    500: '#8a6ce7',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ce7;
$custom-light: #b197ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ce7",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 231
  },
  "hsl": {
    "h": 254.634,
    "s": 71.93,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61927,
    "c": 0.17883,
    "h": 291.5
  },
  "luminance": 0.21898
}

Semantic roles & 50–950 ramp

primary
#8A6CE7
secondary
#E2EBC3
accent
#D412A5
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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