#8E4ECA#8E4ECA

#8E4ECA is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.187 H 304.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8E4ECA
RGBrgb(142, 78, 202)
HSLhsl(271, 54%, 55%)
HSVhsv(271, 61%, 79%)
CMYKcmyk(29.7%, 61.4%, 0%, 20.8%)
CIE-LABlab(46.26, 50.00, -54.36)
CIE-LCHlch(46.26, 73.86, 312.60°)
OKLaboklab(55.83% 0.107 -0.1538)
OKLCHoklch(55.83% 0.187 304.8)
XYZxyz(24.5380, 15.4640, 57.5578)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ECA #8ACA4E
analogous
#504ECA #8E4ECA #CA4EC8
triadic
#8E4ECA #CA8E4E #4ECA8E
tetradic
#8E4ECA #CA504E #8ACA4E #4EC8CA
square
#8E4ECA #CA504E #8ACA4E #4EC8CA
split-complementary
#8E4ECA #C8CA4E #4ECA50
monochromatic
#502479 #6F32A8 #8E4ECA #AC7DD8 #CAACE6

Accessibility & contrast

On white

5.13
#8E4ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8E4ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ECA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ECA#FFFFFF#000000##FFFFFF
##8E4ECA1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016CCE
Deuteranopia (green-blind)
#316EC7
Tritanopia (blue-blind)
#836785
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4eca;
/* rgb */ color: rgb(142, 78, 202);
/* oklch */ color: oklch(55.8% 0.187 304.8);
Tailwind
colors: {
  custom: {
    50: '#b383db',
    500: '#8e4eca',
    950: '#000000',
  },
}
SCSS
$custom: #8e4eca;
$custom-light: #b383db;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4eca",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 270.968,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55826,
    "c": 0.1874,
    "h": 304.8
  },
  "luminance": 0.15464
}

Semantic roles & 50–950 ramp

primary
#8E4ECA
secondary
#B9D4A0
accent
#DD4B92
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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