Skip to content

#8c71cb

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

RGB
140, 113, 203
HSL
258°, 46%, 62%
CMYK
31, 44, 0, 20
Luminance
0.2170

Every format

HEX#8c71cb
RGBrgb(140, 113, 203)
HSLhsl(258, 46%, 62%)
CMYKcmyk(31%, 44%, 0%, 20%)
LABlab(53.7 30.2 -43.1)
LCHlch(53.7 52.6 305.1)
OKLCHoklch(0.613 0.135 296.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c71cb on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#8c71cb on black: 5.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green44.3%
Blue79.6%

CMYK percentages

Cyan31.0%
Magenta44.3%
Yellow0.0%
Key (black)20.4%

Color previews

#8c71cb text on a black background

contrast 5.34:1

Card sample

#8c71cb text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c71cb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c71cb in the Color Lab