#8E4ED2#8E4ED2

#8E4ED2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.4% C 0.196 H 302.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8E4ED2
RGBrgb(142, 78, 210)
HSLhsl(269, 59%, 56%)
HSVhsv(269, 63%, 82%)
CMYKcmyk(32.4%, 62.9%, 0%, 17.6%)
CIE-LABlab(46.78, 51.92, -58.13)
CIE-LCHlch(46.78, 77.94, 311.77°)
OKLaboklab(56.37% 0.1066 -0.1649)
OKLCHoklch(56.37% 0.196 302.9)
XYZxyz(25.5099, 15.8527, 62.6762)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ED2 #92D24E
analogous
#4E50D2 #8E4ED2 #D04ED2
triadic
#8E4ED2 #D28E4E #4ED28E
tetradic
#8E4ED2 #D24E50 #92D24E #4ED2D0
square
#8E4ED2 #D24E50 #92D24E #4ED2D0
split-complementary
#8E4ED2 #D2D04E #50D24E
monochromatic
#512284 #6F2EB5 #8E4ED2 #AD7FDE #CCB0EB

Accessibility & contrast

On white

5.04
#8E4ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8E4ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ED2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ED2#FFFFFF#000000##FFFFFF
##8E4ED21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#246FCF
Tritanopia (blue-blind)
#816A89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e4ed2;
/* rgb */ color: rgb(142, 78, 210);
/* oklch */ color: oklch(56.4% 0.196 302.9);
Tailwind
colors: {
  custom: {
    50: '#b483e1',
    500: '#8e4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ed2;
$custom-light: #b483e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ed2",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 269.091,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56366,
    "c": 0.19636,
    "h": 302.9
  },
  "luminance": 0.15853
}

Semantic roles & 50–950 ramp

primary
#8E4ED2
secondary
#BFD9A3
accent
#E34596
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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