#8E4CD1#8E4CD1

#8E4CD1 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.0% C 0.198 H 303.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8E4CD1
RGBrgb(142, 76, 209)
HSLhsl(270, 59%, 56%)
HSVhsv(270, 64%, 82%)
CMYKcmyk(32.1%, 63.6%, 0%, 18%)
CIE-LABlab(46.34, 52.69, -58.26)
CIE-LCHlch(46.34, 78.55, 312.12°)
OKLaboklab(56.03% 0.109 -0.1653)
OKLCHoklch(56.03% 0.198 303.4)
XYZxyz(25.2458, 15.5231, 61.9755)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4CD1 #8FD14C
analogous
#4C4CD1 #8E4CD1 #D04CD1
triadic
#8E4CD1 #D18E4C #4CD18E
tetradic
#8E4CD1 #D14C4C #8FD14C #4CD1D0
square
#8E4CD1 #D14C4C #8FD14C #4CD1D0
split-complementary
#8E4CD1 #D1D04C #4CD14C
monochromatic
#512181 #6F2EB2 #8E4CD1 #AD7DDE #CBADEA

Accessibility & contrast

On white

5.12
#8E4CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8E4CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4CD1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4CD1#FFFFFF#000000##FFFFFF
##8E4CD11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#226ECE
Tritanopia (blue-blind)
#816988
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4cd1;
/* rgb */ color: rgb(142, 76, 209);
/* oklch */ color: oklch(56.0% 0.198 303.4);
Tailwind
colors: {
  custom: {
    50: '#b482e0',
    500: '#8e4cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8e4cd1;
$custom-light: #b482e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4cd1",
  "rgb": {
    "r": 142,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 269.774,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56029,
    "c": 0.19798,
    "h": 303.4
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#8E4CD1
secondary
#BDD8A1
accent
#E24694
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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