Skip to content

#ac2eff

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

RGB
172, 46, 255
HSL
276°, 100%, 59%
CMYK
33, 82, 0, 0
Luminance
0.1794

Every format

HEX#ac2eff
RGBrgb(172, 46, 255)
HSLhsl(276, 100%, 59%)
CMYKcmyk(33%, 82%, 0%, 0%)
LABlab(49.4 79.9 -79.1)
LCHlch(49.4 112.4 315.3)
OKLCHoklch(0.601 0.280 306.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2eff on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ac2eff on black: 4.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue100.0%

CMYK percentages

Cyan32.5%
Magenta82.0%
Yellow0.0%
Key (black)0.0%

Color previews

#ac2eff text on a black background

contrast 4.59:1

Card sample

#ac2eff text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2eff in the Color Lab