#8E4ED5#8E4ED5

#8E4ED5 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.6% C 0.200 H 302.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E4ED5
RGBrgb(142, 78, 213)
HSLhsl(268, 62%, 57%)
HSVhsv(268, 63%, 84%)
CMYKcmyk(33.3%, 63.4%, 0%, 16.5%)
CIE-LABlab(46.98, 52.64, -59.53)
CIE-LCHlch(46.98, 79.46, 311.49°)
OKLaboklab(56.57% 0.1064 -0.169)
OKLCHoklch(56.57% 0.2 302.2)
XYZxyz(25.8871, 16.0036, 64.6631)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ED5 #95D54E
analogous
#4E52D5 #8E4ED5 #D14ED5
triadic
#8E4ED5 #D58E4E #4ED58E
tetradic
#8E4ED5 #D54E52 #95D54E #4ED5D1
square
#8E4ED5 #D54E52 #95D54E #4ED5D1
split-complementary
#8E4ED5 #D5D14E #52D54E
monochromatic
#522088 #6F2CBA #8E4ED5 #AE7FE1 #CDB1EC

Accessibility & contrast

On white

5.00
#8E4ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8E4ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ED5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ED5#FFFFFF#000000##FFFFFF
##8E4ED51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#1E6FD2
Tritanopia (blue-blind)
#806B8B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e4ed5;
/* rgb */ color: rgb(142, 78, 213);
/* oklch */ color: oklch(56.6% 0.200 302.2);
Tailwind
colors: {
  custom: {
    50: '#b483e3',
    500: '#8e4ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ed5;
$custom-light: #b483e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ed5",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 213
  },
  "hsl": {
    "h": 268.444,
    "s": 61.644,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56573,
    "c": 0.19972,
    "h": 302.2
  },
  "luminance": 0.16004
}

Semantic roles & 50–950 ramp

primary
#8E4ED5
secondary
#C1DBA4
accent
#E54398
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #8E4ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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