#8D4EC6#8D4EC6

#8D4EC6 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.183 H 305.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8D4EC6
RGBrgb(141, 78, 198)
HSLhsl(272, 51%, 54%)
HSVhsv(272, 61%, 78%)
CMYKcmyk(28.8%, 60.6%, 0%, 22.4%)
CIE-LABlab(45.89, 48.81, -52.66)
CIE-LCHlch(45.89, 71.80, 312.83°)
OKLaboklab(55.45% 0.1059 -0.1488)
OKLCHoklch(55.45% 0.183 305.4)
XYZxyz(23.8997, 15.1889, 55.0878)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D4EC6 #87C64E
analogous
#514EC6 #8D4EC6 #C64EC3
triadic
#8D4EC6 #C68D4E #4EC68D
tetradic
#8D4EC6 #C6514E #87C64E #4EC3C6
square
#8D4EC6 #C6514E #87C64E #4EC3C6
split-complementary
#8D4EC6 #C3C64E #4EC651
monochromatic
#4F2574 #6E34A2 #8D4EC6 #AB7CD5 #C9ABE4

Accessibility & contrast

On white

5.20
#8D4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8D4EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D4EC6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D4EC6#FFFFFF#000000##FFFFFF
##8D4EC61.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106BCA
Deuteranopia (green-blind)
#346DC3
Tritanopia (blue-blind)
#836683
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d4ec6;
/* rgb */ color: rgb(141, 78, 198);
/* oklch */ color: oklch(55.4% 0.183 305.4);
Tailwind
colors: {
  custom: {
    50: '#b283d8',
    500: '#8d4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #8d4ec6;
$custom-light: #b283d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d4ec6",
  "rgb": {
    "r": 141,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 271.5,
    "s": 51.282,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55449,
    "c": 0.18265,
    "h": 305.4
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#8D4EC6
secondary
#B7D19E
accent
#DB4D90
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8D4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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