Skip to content

#ac2ae9

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

RGB
172, 42, 233
HSL
281°, 81%, 54%
CMYK
26, 82, 0, 9
Luminance
0.1631

Every format

HEX#ac2ae9
RGBrgb(172, 42, 233)
HSLhsl(281, 81%, 54%)
CMYKcmyk(26%, 82%, 0%, 9%)
LABlab(47.4 76.6 -70.1)
LCHlch(47.4 103.8 317.6)
OKLCHoklch(0.581 0.265 311.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green16.5%
Blue91.4%

CMYK percentages

Cyan26.2%
Magenta82.0%
Yellow0.0%
Key (black)8.6%

Color previews

#ac2ae9 text on a black background

contrast 4.26:1

Card sample

#ac2ae9 text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ae9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ae9 in the Color Lab