Skip to content

#a40ade

a balanced, electric violet · warm · closest name: magenta

RGB
164, 10, 222
HSL
284°, 91%, 46%
CMYK
26, 96, 0, 13
Luminance
0.1338

Every format

HEX#a40ade
RGBrgb(164, 10, 222)
HSLhsl(284, 91%, 46%)
CMYKcmyk(26%, 96%, 0%, 13%)
LABlab(43.3 79.3 -70.5)
LCHlch(43.3 106.1 318.4)
OKLCHoklch(0.548 0.270 312.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a40ade on white: 5.71:1
AA ✓ pass · AA-large · AAA
Aa
#a40ade on black: 3.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green3.9%
Blue87.1%

CMYK percentages

Cyan26.1%
Magenta95.5%
Yellow0.0%
Key (black)12.9%

Color previews

#a40ade text on a black background

contrast 3.68:1

Card sample

#a40ade text on a white background

contrast 5.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a40ade

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a40ade in the Color Lab