#8C4CDC#8C4CDC

#8C4CDC is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.210 H 300.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8C4CDC
RGBrgb(140, 76, 220)
HSLhsl(267, 67%, 58%)
HSVhsv(267, 65%, 86%)
CMYKcmyk(36.4%, 65.5%, 0%, 13.7%)
CIE-LABlab(46.86, 54.94, -63.73)
CIE-LCHlch(46.86, 84.14, 310.76°)
OKLaboklab(56.59% 0.1053 -0.1814)
OKLCHoklch(56.59% 0.21 300.1)
XYZxyz(26.3148, 15.9114, 69.3811)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CDC #9CDC4C
analogous
#4C54DC #8C4CDC #D44CDC
triadic
#8C4CDC #DC8C4C #4CDC8C
tetradic
#8C4CDC #DC4C54 #9CDC4C #4CDCD4
square
#8C4CDC #DC4C54 #9CDC4C #4CDCD4
split-complementary
#8C4CDC #DCD44C #54DC4C
monochromatic
#501C91 #6D26C4 #8C4CDC #AD7FE6 #CEB2F0

Accessibility & contrast

On white

5.02
#8C4CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8C4CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4CDC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4CDC#FFFFFF#000000##FFFFFF
##8C4CDC1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006ED9
Tritanopia (blue-blind)
#7A6D8E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8c4cdc;
/* rgb */ color: rgb(140, 76, 220);
/* oklch */ color: oklch(56.6% 0.210 300.1);
Tailwind
colors: {
  custom: {
    50: '#b382e8',
    500: '#8c4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #8c4cdc;
$custom-light: #b382e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4cdc",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 266.667,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56586,
    "c": 0.20977,
    "h": 300.1
  },
  "luminance": 0.15912
}

Semantic roles & 50–950 ramp

primary
#8C4CDC
secondary
#C5DFA5
accent
#EA3E9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8C4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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