Skip to content

#ac2eaf

a dark, vivid magenta / pink · warm · closest name: purple

RGB
172, 46, 175
HSL
299°, 58%, 43%
CMYK
2, 74, 0, 31
Luminance
0.1382

Every format

HEX#ac2eaf
RGBrgb(172, 46, 175)
HSLhsl(299, 58%, 43%)
CMYKcmyk(2%, 74%, 0%, 31%)
LABlab(44.0 64.9 -42.0)
LCHlch(44.0 77.3 327.1)
OKLCHoklch(0.545 0.214 327.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2eaf on white: 5.58:1
AA ✓ pass · AA-large · AAA
Aa
#ac2eaf on black: 3.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue68.6%

CMYK percentages

Cyan1.7%
Magenta73.7%
Yellow0.0%
Key (black)31.4%

Color previews

#ac2eaf text on a black background

contrast 3.76:1

Card sample

#ac2eaf text on a white background

contrast 5.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2eaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2eaf in the Color Lab