#8E4DCA#8E4DCA

#8E4DCA is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.189 H 305.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8E4DCA
RGBrgb(142, 77, 202)
HSLhsl(271, 54%, 55%)
HSVhsv(271, 62%, 79%)
CMYKcmyk(29.7%, 61.9%, 0%, 20.8%)
CIE-LABlab(46.07, 50.51, -54.67)
CIE-LCHlch(46.07, 74.43, 312.74°)
OKLaboklab(55.69% 0.1082 -0.1547)
OKLCHoklch(55.69% 0.189 305)
XYZxyz(24.4675, 15.3229, 57.5343)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4DCA #89CA4D
analogous
#4F4DCA #8E4DCA #CA4DC8
triadic
#8E4DCA #CA8E4D #4DCA8E
tetradic
#8E4DCA #CA4F4D #89CA4D #4DC8CA
square
#8E4DCA #CA4F4D #89CA4D #4DC8CA
split-complementary
#8E4DCA #C8CA4D #4DCA4F
monochromatic
#502479 #6F32A8 #8E4DCA #AC7CD8 #CAABE6

Accessibility & contrast

On white

5.17
#8E4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8E4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4DCA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4DCA#FFFFFF#000000##FFFFFF
##8E4DCA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#2F6DC7
Tritanopia (blue-blind)
#836784
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e4dca;
/* rgb */ color: rgb(142, 77, 202);
/* oklch */ color: oklch(55.7% 0.189 305.0);
Tailwind
colors: {
  custom: {
    50: '#b382db',
    500: '#8e4dca',
    950: '#000000',
  },
}
SCSS
$custom: #8e4dca;
$custom-light: #b382db;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4dca",
  "rgb": {
    "r": 142,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 271.2,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55688,
    "c": 0.18881,
    "h": 305
  },
  "luminance": 0.15323
}

Semantic roles & 50–950 ramp

primary
#8E4DCA
secondary
#B8D49F
accent
#DD4A91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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