#8E4ED8#8E4ED8

#8E4ED8 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.203 H 301.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8E4ED8
RGBrgb(142, 78, 216)
HSLhsl(268, 64%, 58%)
HSVhsv(268, 64%, 85%)
CMYKcmyk(34.3%, 63.9%, 0%, 15.3%)
CIE-LABlab(47.18, 53.37, -60.92)
CIE-LCHlch(47.18, 80.99, 311.22°)
OKLaboklab(56.78% 0.1062 -0.1731)
OKLCHoklch(56.78% 0.203 301.5)
XYZxyz(26.2714, 16.1573, 66.6870)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ED8 #98D84E
analogous
#4E53D8 #8E4ED8 #D34ED8
triadic
#8E4ED8 #D88E4E #4ED88E
tetradic
#8E4ED8 #D84E53 #98D84E #4ED8D3
square
#8E4ED8 #D84E53 #98D84E #4ED8D3
split-complementary
#8E4ED8 #D8D34E #53D84E
monochromatic
#521F8D #6F2ABF #8E4ED8 #AE80E3 #CEB2EE

Accessibility & contrast

On white

4.96
#8E4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8E4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ED8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ED8#FFFFFF#000000##FFFFFF
##8E4ED81.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#176FD5
Tritanopia (blue-blind)
#7F6C8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8e4ed8;
/* rgb */ color: rgb(142, 78, 216);
/* oklch */ color: oklch(56.8% 0.203 301.5);
Tailwind
colors: {
  custom: {
    50: '#b483e5',
    500: '#8e4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ed8;
$custom-light: #b483e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ed8",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 267.826,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56782,
    "c": 0.20305,
    "h": 301.5
  },
  "luminance": 0.16157
}

Semantic roles & 50–950 ramp

primary
#8E4ED8
secondary
#C3DDA5
accent
#E7419A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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