#8E4ECC#8E4ECC

#8E4ECC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.0% C 0.190 H 304.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8E4ECC
RGBrgb(142, 78, 204)
HSLhsl(270, 55%, 55%)
HSVhsv(270, 62%, 80%)
CMYKcmyk(30.4%, 61.8%, 0%, 20%)
CIE-LABlab(46.39, 50.47, -55.31)
CIE-LCHlch(46.39, 74.88, 312.38°)
OKLaboklab(55.96% 0.107 -0.1566)
OKLCHoklch(55.96% 0.19 304.3)
XYZxyz(24.7764, 15.5593, 58.8130)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ECC #8CCC4E
analogous
#4F4ECC #8E4ECC #CC4ECB
triadic
#8E4ECC #CC8E4E #4ECC8E
tetradic
#8E4ECC #CC4F4E #8CCC4E #4ECBCC
square
#8E4ECC #CC4F4E #8CCC4E #4ECBCC
split-complementary
#8E4ECC #CBCC4E #4ECC4F
monochromatic
#50247C #6F31AB #8E4ECC #AC7EDA #CBADE7

Accessibility & contrast

On white

5.11
#8E4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8E4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ECC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ECC#FFFFFF#000000##FFFFFF
##8E4ECC1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#2E6EC9
Tritanopia (blue-blind)
#836886
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4ecc;
/* rgb */ color: rgb(142, 78, 204);
/* oklch */ color: oklch(56.0% 0.190 304.3);
Tailwind
colors: {
  custom: {
    50: '#b383dc',
    500: '#8e4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ecc;
$custom-light: #b383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ecc",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 270.476,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5596,
    "c": 0.18964,
    "h": 304.3
  },
  "luminance": 0.15559
}

Semantic roles & 50–950 ramp

primary
#8E4ECC
secondary
#BAD5A1
accent
#DF4993
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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