#8E4CD2#8E4CD2

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

Color values

HEX#8E4CD2
RGBrgb(142, 76, 210)
HSLhsl(270, 60%, 56%)
HSVhsv(270, 64%, 82%)
CMYKcmyk(32.4%, 63.8%, 0%, 17.6%)
CIE-LABlab(46.41, 52.93, -58.73)
CIE-LCHlch(46.41, 79.06, 312.03°)
OKLaboklab(56.1% 0.1089 -0.1666)
OKLCHoklch(56.1% 0.199 303.2)
XYZxyz(25.3700, 15.5728, 62.6296)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4CD2 #90D24C
analogous
#4C4DD2 #8E4CD2 #D14CD2
triadic
#8E4CD2 #D28E4C #4CD28E
tetradic
#8E4CD2 #D24C4D #90D24C #4CD2D1
square
#8E4CD2 #D24C4D #90D24C #4CD2D1
split-complementary
#8E4CD2 #D2D14C #4DD24C
monochromatic
#512183 #6F2DB4 #8E4CD2 #AD7DDE #CCAEEB

Accessibility & contrast

On white

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

On black

4.11
#8E4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8E4CD2#FFFFFF#000000##FFFFFF
##8E4CD21.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#206ECF
Tritanopia (blue-blind)
#816988
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e4cd2;
/* rgb */ color: rgb(142, 76, 210);
/* oklch */ color: oklch(56.1% 0.199 303.2);
Tailwind
colors: {
  custom: {
    50: '#b482e1',
    500: '#8e4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4cd2;
$custom-light: #b482e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4cd2",
  "rgb": {
    "r": 142,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 269.552,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56098,
    "c": 0.19908,
    "h": 303.2
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#8E4CD2
secondary
#BDD9A1
accent
#E34595
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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