#8E4ED6#8E4ED6

#8E4ED6 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.201 H 302.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8E4ED6
RGBrgb(142, 78, 214)
HSLhsl(268, 62%, 57%)
HSVhsv(268, 64%, 84%)
CMYKcmyk(33.6%, 63.6%, 0%, 16.1%)
CIE-LABlab(47.05, 52.89, -59.99)
CIE-LCHlch(47.05, 79.97, 311.40°)
OKLaboklab(56.64% 0.1063 -0.1704)
OKLCHoklch(56.64% 0.201 302)
XYZxyz(26.0145, 16.0545, 65.3336)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4ED6 #96D64E
analogous
#4E52D6 #8E4ED6 #D24ED6
triadic
#8E4ED6 #D68E4E #4ED68E
tetradic
#8E4ED6 #D64E52 #96D64E #4ED6D2
square
#8E4ED6 #D64E52 #96D64E #4ED6D2
split-complementary
#8E4ED6 #D6D24E #52D64E
monochromatic
#52208A #6F2BBB #8E4ED6 #AE80E2 #CDB1ED

Accessibility & contrast

On white

4.99
#8E4ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8E4ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4ED6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4ED6#FFFFFF#000000##FFFFFF
##8E4ED61.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#1C6FD3
Tritanopia (blue-blind)
#7F6C8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8e4ed6;
/* rgb */ color: rgb(142, 78, 214);
/* oklch */ color: oklch(56.6% 0.201 302.0);
Tailwind
colors: {
  custom: {
    50: '#b483e3',
    500: '#8e4ed6',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ed6;
$custom-light: #b483e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ed6",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 268.235,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56643,
    "c": 0.20083,
    "h": 302
  },
  "luminance": 0.16055
}

Semantic roles & 50–950 ramp

primary
#8E4ED6
secondary
#C2DBA4
accent
#E54299
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E4ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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