Skip to content

#8c01a4

a dark, electric magenta / pink · warm · closest name: purple

RGB
140, 1, 164
HSL
291°, 99%, 32%
CMYK
15, 99, 0, 36
Luminance
0.0828

Every format

HEX#8c01a4
RGBrgb(140, 1, 164)
HSLhsl(291, 99%, 32%)
CMYKcmyk(15%, 99%, 0%, 36%)
LABlab(34.6 66.7 -50.9)
LCHlch(34.6 83.8 322.7)
OKLCHoklch(0.466 0.223 320.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c01a4 on white: 7.91:1
AA ✓ pass · AA-large · AAA
Aa
#8c01a4 on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.9%
Green0.4%
Blue64.3%

CMYK percentages

Cyan14.6%
Magenta99.4%
Yellow0.0%
Key (black)35.7%

Color previews

#8c01a4 text on a black background

contrast 2.66:1

Card sample

#8c01a4 text on a white background

contrast 7.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c01a4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8c01a4 in the Color Lab