Skip to content

#8c2fab

a dark, vivid violet · warm · closest name: purple

RGB
140, 47, 171
HSL
285°, 57%, 43%
CMYK
18, 73, 0, 33
Luminance
0.1055

Every format

HEX#8c2fab
RGBrgb(140, 47, 171)
HSLhsl(285, 57%, 43%)
CMYKcmyk(18%, 73%, 0%, 33%)
LABlab(38.8 57.0 -48.2)
LCHlch(38.8 74.7 319.8)
OKLCHoklch(0.498 0.196 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c2fab on white: 6.75:1
AA ✓ pass · AA-large · AAA
Aa
#8c2fab on black: 3.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green18.4%
Blue67.1%

CMYK percentages

Cyan18.1%
Magenta72.5%
Yellow0.0%
Key (black)32.9%

Color previews

#8c2fab text on a black background

contrast 3.11:1

Card sample

#8c2fab text on a white background

contrast 6.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c2fab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c2fab in the Color Lab