#8A6CE3#8A6CE3

#8A6CE3 is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.7% C 0.174 H 292.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A6CE3
RGBrgb(138, 108, 227)
HSLhsl(255, 68%, 66%)
HSVhsv(255, 52%, 89%)
CMYKcmyk(39.2%, 52.4%, 0%, 11%)
CIE-LABlab(53.68, 38.97, -56.71)
CIE-LCHlch(53.68, 68.81, 304.50°)
OKLaboklab(61.67% 0.0655 -0.1609)
OKLCHoklch(61.67% 0.174 292.1)
XYZxyz(29.7052, 21.6737, 75.2765)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6CE3 #C5E36C
analogous
#6C89E3 #8A6CE3 #C56CE3
triadic
#8A6CE3 #E38A6C #6CE38A
tetradic
#8A6CE3 #E36C89 #C5E36C #6CE3C5
square
#8A6CE3 #E36C89 #C5E36C #6CE3C5
split-complementary
#8A6CE3 #E3C56C #89E36C
monochromatic
#4622B3 #6139D9 #8A6CE3 #B39FED #DCD3F7

Accessibility & contrast

On white

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

On black

5.33
#8A6CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6CE3
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6CE3#FFFFFF#000000##000000
##8A6CE31.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3882E7
Deuteranopia (green-blind)
#3D7EE0
Tritanopia (blue-blind)
#73859D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a6ce3;
/* rgb */ color: rgb(138, 108, 227);
/* oklch */ color: oklch(61.7% 0.174 292.1);
Tailwind
colors: {
  custom: {
    50: '#b197ec',
    500: '#8a6ce3',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ce3;
$custom-light: #b197ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ce3",
  "rgb": {
    "r": 138,
    "g": 108,
    "b": 227
  },
  "hsl": {
    "h": 255.126,
    "s": 68,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61673,
    "c": 0.17368,
    "h": 292.1
  },
  "luminance": 0.21674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A6CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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