Skip to content

#8f49cf

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

RGB
143, 73, 207
HSL
271°, 58%, 55%
CMYK
31, 65, 0, 19
Luminance
0.1511

Every format

HEX#8f49cf
RGBrgb(143, 73, 207)
HSLhsl(271, 58%, 55%)
CMYKcmyk(31%, 65%, 0%, 19%)
LABlab(45.8 53.9 -58.0)
LCHlch(45.8 79.2 312.9)
OKLCHoklch(0.556 0.200 304.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f49cf on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#8f49cf on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green28.6%
Blue81.2%

CMYK percentages

Cyan30.9%
Magenta64.7%
Yellow0.0%
Key (black)18.8%

Color previews

#8f49cf text on a black background

contrast 4.02:1

Card sample

#8f49cf text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 73, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 73, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f49cf;
background: linear-gradient(135deg, #8f49cf, #CF49B6);

Monochromatic scale

Palettes built from #8f49cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f49cf in the Color Lab