#8E4EDA#8E4EDA

#8E4EDA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.205 H 301.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8E4EDA
RGBrgb(142, 78, 218)
HSLhsl(267, 65%, 58%)
HSVhsv(267, 64%, 85%)
CMYKcmyk(34.9%, 64.2%, 0%, 14.5%)
CIE-LABlab(47.32, 53.86, -61.84)
CIE-LCHlch(47.32, 82.00, 311.06°)
OKLaboklab(56.92% 0.106 -0.1758)
OKLCHoklch(56.92% 0.205 301.1)
XYZxyz(26.5316, 16.2614, 68.0570)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4EDA #9ADA4E
analogous
#4E54DA #8E4EDA #D44EDA
triadic
#8E4EDA #DA8E4E #4EDA8E
tetradic
#8E4EDA #DA4E54 #9ADA4E #4EDAD4
square
#8E4EDA #DA4E54 #9ADA4E #4EDAD4
split-complementary
#8E4EDA #DAD44E #54DA4E
monochromatic
#521E90 #6F29C2 #8E4EDA #AE81E5 #CFB3EF

Accessibility & contrast

On white

4.94
#8E4EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8E4EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4EDA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4EDA#FFFFFF#000000##FFFFFF
##8E4EDA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDE
Deuteranopia (green-blind)
#106FD7
Tritanopia (blue-blind)
#7E6D8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8e4eda;
/* rgb */ color: rgb(142, 78, 218);
/* oklch */ color: oklch(56.9% 0.205 301.1);
Tailwind
colors: {
  custom: {
    50: '#b483e6',
    500: '#8e4eda',
    950: '#000000',
  },
}
SCSS
$custom: #8e4eda;
$custom-light: #b483e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4eda",
  "rgb": {
    "r": 142,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 267.429,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.20528,
    "h": 301.1
  },
  "luminance": 0.16262
}

Semantic roles & 50–950 ramp

primary
#8E4EDA
secondary
#C4DEA6
accent
#E83F9B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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