#8C4CD6#8C4CD6

#8C4CD6 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.203 H 301.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8C4CD6
RGBrgb(140, 76, 214)
HSLhsl(268, 63%, 57%)
HSVhsv(268, 64%, 84%)
CMYKcmyk(34.6%, 64.5%, 0%, 16.1%)
CIE-LABlab(46.44, 53.47, -60.97)
CIE-LCHlch(46.44, 81.10, 311.25°)
OKLaboklab(56.16% 0.1059 -0.1733)
OKLCHoklch(56.16% 0.203 301.4)
XYZxyz(25.5344, 15.5993, 65.2710)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CD6 #96D64C
analogous
#4C51D6 #8C4CD6 #D14CD6
triadic
#8C4CD6 #D68C4C #4CD68C
tetradic
#8C4CD6 #D64C51 #96D64C #4CD6D1
square
#8C4CD6 #D64C51 #96D64C #4CD6D1
split-complementary
#8C4CD6 #D6D14C #51D64C
monochromatic
#501F88 #6D2BBA #8C4CD6 #AC7EE1 #CCB0ED

Accessibility & contrast

On white

5.10
#8C4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8C4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4CD6
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4CD6#FFFFFF#000000##FFFFFF
##8C4CD61.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#106DD3
Tritanopia (blue-blind)
#7D6B8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c4cd6;
/* rgb */ color: rgb(140, 76, 214);
/* oklch */ color: oklch(56.2% 0.203 301.4);
Tailwind
colors: {
  custom: {
    50: '#b382e3',
    500: '#8c4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #8c4cd6;
$custom-light: #b382e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4cd6",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 267.826,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56157,
    "c": 0.20311,
    "h": 301.4
  },
  "luminance": 0.15599
}

Semantic roles & 50–950 ramp

primary
#8C4CD6
secondary
#C1DBA3
accent
#E6429A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8C4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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