Skip to content

#8c3ace

a balanced, vivid violet · warm · closest name: slateblue

RGB
140, 58, 206
HSL
273°, 60%, 52%
CMYK
32, 72, 0, 19
Luminance
0.1306

Every format

HEX#8c3ace
RGBrgb(140, 58, 206)
HSLhsl(273, 60%, 52%)
CMYKcmyk(32%, 72%, 0%, 19%)
LABlab(42.9 60.0 -62.2)
LCHlch(42.9 86.4 314.0)
OKLCHoklch(0.534 0.217 305.4)

Copy-ready code

/* CSS */
color: #8c3ace;
background-color: #8c3ace;
/* Tailwind (arbitrary) */
class="text-[#8c3ace] bg-[#8c3ace]"
/* SCSS */
$brand: #8c3ace;
/* SwiftUI */
Color(red: 0.549, green: 0.227, blue: 0.808)
/* Android */
Color.parseColor("#8c3ace")

Accessibility — WCAG contrast

Aa
#8c3ace on white: 5.81:1
AA ✓ pass · AA-large · AAA
Aa
#8c3ace on black: 3.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green22.7%
Blue80.8%

CMYK percentages

Cyan32.0%
Magenta71.8%
Yellow0.0%
Key (black)19.2%

Color previews

#8c3ace text on a black background

contrast 3.61:1

Card sample

#8c3ace text on a white background

contrast 5.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8c3ace;
Background color
Panel with #8c3ace background
background-color: #8c3ace;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #8c3ace;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(140, 58, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 58, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c3ace;
background: linear-gradient(135deg, #8c3ace, #CE3AAE);

Monochromatic scale

Palettes built from #8c3ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c3ace in the Color Lab