Skip to content

#ac40ff

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

RGB
172, 64, 255
HSL
274°, 100%, 63%
CMYK
33, 75, 0, 0
Luminance
0.1966

Every format

HEX#ac40ff
RGBrgb(172, 64, 255)
HSLhsl(274, 100%, 63%)
CMYKcmyk(33%, 75%, 0%, 0%)
LABlab(51.5 74.0 -75.8)
LCHlch(51.5 105.9 314.3)
OKLCHoklch(0.615 0.265 305.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac40ff on white: 4.26:1
AA ✗ fail · AA-large · AAA
Aa
#ac40ff on black: 4.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green25.1%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta74.9%
Yellow0.0%
Key (black)0.0%

Color previews

#ac40ff text on a black background

contrast 4.93:1

Card sample

#ac40ff text on a white background

contrast 4.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 64, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 64, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac40ff;
background: linear-gradient(135deg, #ac40ff, #FF40D3);

Monochromatic scale

Palettes built from #ac40ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac40ff in the Color Lab