#8E4ECD#8E4ECD

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

Color values

HEX#8E4ECD
RGBrgb(142, 78, 205)
HSLhsl(270, 56%, 55%)
HSVhsv(270, 62%, 80%)
CMYKcmyk(30.7%, 62%, 0%, 19.6%)
CIE-LABlab(46.46, 50.71, -55.78)
CIE-LCHlch(46.46, 75.39, 312.28°)
OKLaboklab(56.03% 0.1069 -0.158)
OKLCHoklch(56.03% 0.191 304.1)
XYZxyz(24.8967, 15.6074, 59.4467)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ECD #8DCD4E
analogous
#4E4ECD #8E4ECD #CD4ECD
triadic
#8E4ECD #CD8E4E #4ECD8E
tetradic
#8E4ECD #CD4E4E #8DCD4E #4ECDCD
square
#8E4ECD #CD4E4E #8DCD4E #4ECDCD
split-complementary
#8E4ECD #CDCD4E #4ECD4E
monochromatic
#51237D #6F31AD #8E4ECD #AC7EDA #CBADE8

Accessibility & contrast

On white

5.10
#8E4ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8E4ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ECD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ECD#FFFFFF#000000##FFFFFF
##8E4ECD1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#2D6ECA
Tritanopia (blue-blind)
#826886
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4ecd;
/* rgb */ color: rgb(142, 78, 205);
/* oklch */ color: oklch(56.0% 0.191 304.1);
Tailwind
colors: {
  custom: {
    50: '#b383dd',
    500: '#8e4ecd',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ecd;
$custom-light: #b383dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ecd",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 270.236,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56027,
    "c": 0.19077,
    "h": 304.1
  },
  "luminance": 0.15607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E4ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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