Skip to content

#ac2ff7

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

RGB
172, 47, 247
HSL
278°, 93%, 58%
CMYK
30, 81, 0, 3
Luminance
0.1752

Every format

HEX#ac2ff7
RGBrgb(172, 47, 247)
HSLhsl(278, 93%, 58%)
CMYKcmyk(30%, 81%, 0%, 3%)
LABlab(48.9 78.0 -75.5)
LCHlch(48.9 108.5 315.9)
OKLCHoklch(0.595 0.273 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ff7 on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ff7 on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue96.9%

CMYK percentages

Cyan30.4%
Magenta81.0%
Yellow0.0%
Key (black)3.1%

Color previews

#ac2ff7 text on a black background

contrast 4.50:1

Card sample

#ac2ff7 text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ff7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ff7 in the Color Lab