#8C4EDB#8C4EDB

#8C4EDB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.8% C 0.206 H 300.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8C4EDB
RGBrgb(140, 78, 219)
HSLhsl(266, 66%, 58%)
HSVhsv(266, 64%, 86%)
CMYKcmyk(36.1%, 64.4%, 0%, 14.1%)
CIE-LABlab(47.16, 53.69, -62.68)
CIE-LCHlch(47.16, 82.53, 310.58°)
OKLaboklab(56.78% 0.1033 -0.1783)
OKLCHoklch(56.78% 0.206 300.1)
XYZxyz(26.3227, 16.1385, 68.7323)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4EDB #9DDB4E
analogous
#4E56DB #8C4EDB #D24EDB
triadic
#8C4EDB #DB8C4E #4EDB8C
tetradic
#8C4EDB #DB4E56 #9DDB4E #4EDBD2
square
#8C4EDB #DB4E56 #9DDB4E #4EDBD2
split-complementary
#8C4EDB #DBD24E #56DB4E
monochromatic
#501E91 #6C28C4 #8C4EDB #AD81E5 #CEB4F0

Accessibility & contrast

On white

4.97
#8C4EDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C4EDB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4EDB#FFFFFF#000000##FFFFFF
##8C4EDB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#016FD8
Tritanopia (blue-blind)
#7B6E8E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8c4edb;
/* rgb */ color: rgb(140, 78, 219);
/* oklch */ color: oklch(56.8% 0.206 300.1);
Tailwind
colors: {
  custom: {
    50: '#b383e7',
    500: '#8c4edb',
    950: '#000000',
  },
}
SCSS
$custom: #8c4edb;
$custom-light: #b383e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4edb",
  "rgb": {
    "r": 140,
    "g": 78,
    "b": 219
  },
  "hsl": {
    "h": 266.383,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56778,
    "c": 0.20607,
    "h": 300.1
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#8C4EDB
secondary
#C6DEA6
accent
#E93F9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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