#8C4DCD#8C4DCD

#8C4DCD is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.192 H 303.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8C4DCD
RGBrgb(140, 77, 205)
HSLhsl(270, 56%, 55%)
HSVhsv(270, 62%, 80%)
CMYKcmyk(31.7%, 62.4%, 0%, 19.6%)
CIE-LABlab(46.03, 50.78, -56.48)
CIE-LCHlch(46.03, 75.95, 311.96°)
OKLaboklab(55.67% 0.1055 -0.1601)
OKLCHoklch(55.67% 0.192 303.4)
XYZxyz(24.4860, 15.2910, 59.4072)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4DCD #8ECD4D
analogous
#4D4ECD #8C4DCD #CC4DCD
triadic
#8C4DCD #CD8C4D #4DCD8C
tetradic
#8C4DCD #CD4D4E #8ECD4D #4DCDCC
square
#8C4DCD #CD4D4E #8ECD4D #4DCDCC
split-complementary
#8C4DCD #CDCC4D #4ECD4D
monochromatic
#4F237D #6D30AC #8C4DCD #AB7DDA #CAADE8

Accessibility & contrast

On white

5.17
#8C4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8C4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4DCD
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4DCD#FFFFFF#000000##FFFFFF
##8C4DCD1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#286DCA
Tritanopia (blue-blind)
#806886
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8c4dcd;
/* rgb */ color: rgb(140, 77, 205);
/* oklch */ color: oklch(55.7% 0.192 303.4);
Tailwind
colors: {
  custom: {
    50: '#b282dd',
    500: '#8c4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #8c4dcd;
$custom-light: #b282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4dcd",
  "rgb": {
    "r": 140,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 269.531,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55666,
    "c": 0.19171,
    "h": 303.4
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#8C4DCD
secondary
#BBD6A0
accent
#DF4895
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8C4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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