#8A6ECC#8A6ECC

#8A6ECC is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.6% C 0.140 H 295.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A6ECC
RGBrgb(138, 110, 204)
HSLhsl(258, 48%, 62%)
HSVhsv(258, 46%, 80%)
CMYKcmyk(32.4%, 46.1%, 0%, 20%)
CIE-LABlab(52.86, 31.70, -45.01)
CIE-LCHlch(52.86, 55.05, 305.16°)
OKLaboklab(60.64% 0.0608 -0.1266)
OKLCHoklch(60.64% 0.14 295.6)
XYZxyz(26.9535, 20.9144, 59.7319)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A6ECC #B0CC6E
analogous
#6E81CC #8A6ECC #B96ECC
triadic
#8A6ECC #CC8A6E #6ECC8A
tetradic
#8A6ECC #CC6E81 #B0CC6E #6ECCB9
square
#8A6ECC #CC6E81 #B0CC6E #6ECCB9
split-complementary
#8A6ECC #CCB96E #81CC6E
monochromatic
#4D328E #6642BB #8A6ECC #AF9BDC #D3C9EC

Accessibility & contrast

On white

4.05
#8A6ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8A6ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A6ECC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A6ECC#FFFFFF#000000##000000
##8A6ECC1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FCF
Deuteranopia (green-blind)
#557DCA
Tritanopia (blue-blind)
#7B8093
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a6ecc;
/* rgb */ color: rgb(138, 110, 204);
/* oklch */ color: oklch(60.6% 0.140 295.6);
Tailwind
colors: {
  custom: {
    50: '#af98dc',
    500: '#8a6ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8a6ecc;
$custom-light: #af98dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a6ecc",
  "rgb": {
    "r": 138,
    "g": 110,
    "b": 204
  },
  "hsl": {
    "h": 257.872,
    "s": 47.959,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60641,
    "c": 0.14044,
    "h": 295.6
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#8A6ECC
secondary
#D2DCB9
accent
#BB2A90
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #8A6ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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