#8C4EBE#8C4EBE

#8C4EBE is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.173 H 307.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8C4EBE
RGBrgb(140, 78, 190)
HSLhsl(273, 46%, 53%)
HSVhsv(273, 59%, 75%)
CMYKcmyk(26.3%, 58.9%, 0%, 25.5%)
CIE-LABlab(45.28, 46.68, -49.00)
CIE-LCHlch(45.28, 67.68, 313.61°)
OKLaboklab(54.82% 0.1046 -0.1382)
OKLCHoklch(54.82% 0.173 307.1)
XYZxyz(22.8319, 14.7422, 50.3479)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4EBE #80BE4E
analogous
#544EBE #8C4EBE #BE4EB8
triadic
#8C4EBE #BE8C4E #4EBE8C
tetradic
#8C4EBE #BE544E #80BE4E #4EB8BE
square
#8C4EBE #BE544E #80BE4E #4EB8BE
split-complementary
#8C4EBE #B8BE4E #4EBE54
monochromatic
#4C276A #6D3897 #8C4EBE #A97BCE #C6A8DF

Accessibility & contrast

On white

5.32
#8C4EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8C4EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4EBE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4EBE#FFFFFF#000000##FFFFFF
##8C4EBE1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C2
Deuteranopia (green-blind)
#3C6CBB
Tritanopia (blue-blind)
#84647E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8c4ebe;
/* rgb */ color: rgb(140, 78, 190);
/* oklch */ color: oklch(54.8% 0.173 307.1);
Tailwind
colors: {
  custom: {
    50: '#b182d2',
    500: '#8c4ebe',
    950: '#000000',
  },
}
SCSS
$custom: #8c4ebe;
$custom-light: #b182d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4ebe",
  "rgb": {
    "r": 140,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 273.214,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54818,
    "c": 0.17332,
    "h": 307.1
  },
  "luminance": 0.14742
}

Semantic roles & 50–950 ramp

primary
#8C4EBE
secondary
#B1CC9C
accent
#D6528D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8C4EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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