#8A6CE2#8A6CE2

#8A6CE2 is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.6% C 0.172 H 292.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A6CE2
RGBrgb(138, 108, 226)
HSLhsl(255, 67%, 65%)
HSVhsv(255, 52%, 89%)
CMYKcmyk(38.9%, 52.2%, 0%, 11.4%)
CIE-LABlab(53.62, 38.70, -56.24)
CIE-LCHlch(53.62, 68.27, 304.53°)
OKLaboklab(61.61% 0.0654 -0.1595)
OKLCHoklch(61.61% 0.172 292.3)
XYZxyz(29.5676, 21.6186, 74.5517)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CE2 #C4E26C
analogous
#6C89E2 #8A6CE2 #C56CE2
triadic
#8A6CE2 #E28A6C #6CE28A
tetradic
#8A6CE2 #E26C89 #C4E26C #6CE2C5
square
#8A6CE2 #E26C89 #C4E26C #6CE2C5
split-complementary
#8A6CE2 #E2C56C #89E26C
monochromatic
#4723B1 #6139D8 #8A6CE2 #B39FEC #DBD2F6

Accessibility & contrast

On white

3.94
#8A6CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8A6CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CE2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CE2#FFFFFF#000000##000000
##8A6CE21.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3982E6
Deuteranopia (green-blind)
#3F7EDF
Tritanopia (blue-blind)
#73849D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6ce2;
/* rgb */ color: rgb(138, 108, 226);
/* oklch */ color: oklch(61.6% 0.172 292.3);
Tailwind
colors: {
  custom: {
    50: '#b197ec',
    500: '#8a6ce2',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ce2;
$custom-light: #b197ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ce2",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 226
  },
  "hsl": {
    "h": 255.254,
    "s": 67.045,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6161,
    "c": 0.17239,
    "h": 292.3
  },
  "luminance": 0.21619
}

Semantic roles & 50–950 ramp

primary
#8A6CE2
secondary
#DFE9C1
accent
#CF17A0
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8A6CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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