Skip to content

#a40cdf

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

RGB
164, 12, 223
HSL
283°, 90%, 46%
CMYK
27, 95, 0, 13
Luminance
0.1348

Every format

HEX#a40cdf
RGBrgb(164, 12, 223)
HSLhsl(283, 90%, 46%)
CMYKcmyk(27%, 95%, 0%, 13%)
LABlab(43.5 79.3 -70.8)
LCHlch(43.5 106.3 318.2)
OKLCHoklch(0.550 0.270 312.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a40cdf on white: 5.68:1
AA ✓ pass · AA-large · AAA
Aa
#a40cdf on black: 3.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green4.7%
Blue87.5%

CMYK percentages

Cyan26.5%
Magenta94.6%
Yellow0.0%
Key (black)12.5%

Color previews

#a40cdf text on a black background

contrast 3.70:1

Card sample

#a40cdf text on a white background

contrast 5.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a40cdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a40cdf in the Color Lab