#8E4DCC#8E4DCC

#8E4DCC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.8% C 0.191 H 304.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8E4DCC
RGBrgb(142, 77, 204)
HSLhsl(271, 55%, 55%)
HSVhsv(271, 62%, 80%)
CMYKcmyk(30.4%, 62.3%, 0%, 20%)
CIE-LABlab(46.20, 50.99, -55.61)
CIE-LCHlch(46.20, 75.45, 312.51°)
OKLaboklab(55.82% 0.1081 -0.1575)
OKLCHoklch(55.82% 0.191 304.5)
XYZxyz(24.7059, 15.4183, 58.7895)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4DCC #8BCC4D
analogous
#4F4DCC #8E4DCC #CC4DCA
triadic
#8E4DCC #CC8E4D #4DCC8E
tetradic
#8E4DCC #CC4F4D #8BCC4D #4DCACC
square
#8E4DCC #CC4F4D #8BCC4D #4DCACC
split-complementary
#8E4DCC #CACC4D #4DCC4F
monochromatic
#50237B #6F31AB #8E4DCC #AC7DDA #CAACE7

Accessibility & contrast

On white

5.14
#8E4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8E4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4DCC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4DCC#FFFFFF#000000##FFFFFF
##8E4DCC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#2C6DC9
Tritanopia (blue-blind)
#836785
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e4dcc;
/* rgb */ color: rgb(142, 77, 204);
/* oklch */ color: oklch(55.8% 0.191 304.5);
Tailwind
colors: {
  custom: {
    50: '#b382dc',
    500: '#8e4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #8e4dcc;
$custom-light: #b382dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4dcc",
  "rgb": {
    "r": 142,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 270.709,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55823,
    "c": 0.19105,
    "h": 304.5
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#8E4DCC
secondary
#BAD5A0
accent
#DF4992
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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