#8C4CD2#8C4CD2

#8C4CD2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.9% C 0.199 H 302.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8C4CD2
RGBrgb(140, 76, 210)
HSLhsl(269, 60%, 56%)
HSVhsv(269, 64%, 82%)
CMYKcmyk(33.3%, 63.8%, 0%, 17.6%)
CIE-LABlab(46.17, 52.50, -59.12)
CIE-LCHlch(46.17, 79.06, 311.60°)
OKLaboklab(55.88% 0.1063 -0.1679)
OKLCHoklch(55.88% 0.199 302.3)
XYZxyz(25.0298, 15.3974, 62.6136)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CD2 #92D24C
analogous
#4C4FD2 #8C4CD2 #CF4CD2
triadic
#8C4CD2 #D28C4C #4CD28C
tetradic
#8C4CD2 #D24C4F #92D24C #4CD2CF
square
#8C4CD2 #D24C4F #92D24C #4CD2CF
split-complementary
#8C4CD2 #D2CF4C #4FD24C
monochromatic
#502183 #6D2DB4 #8C4CD2 #AB7DDE #CBAEEB

Accessibility & contrast

On white

5.15
#8C4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8C4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4CD2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4CD2#FFFFFF#000000##FFFFFF
##8C4CD21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#1C6DCF
Tritanopia (blue-blind)
#7E6988
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8c4cd2;
/* rgb */ color: rgb(140, 76, 210);
/* oklch */ color: oklch(55.9% 0.199 302.3);
Tailwind
colors: {
  custom: {
    50: '#b282e1',
    500: '#8c4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8c4cd2;
$custom-light: #b282e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4cd2",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 268.657,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55876,
    "c": 0.19867,
    "h": 302.3
  },
  "luminance": 0.15397
}

Semantic roles & 50–950 ramp

primary
#8C4CD2
secondary
#BED9A1
accent
#E34597
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8C4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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