Skip to content

#ac2cef

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

RGB
172, 44, 239
HSL
279°, 86%, 56%
CMYK
28, 82, 0, 6
Luminance
0.1680

Every format

HEX#ac2cef
RGBrgb(172, 44, 239)
HSLhsl(279, 86%, 56%)
CMYKcmyk(28%, 82%, 0%, 6%)
LABlab(48.0 77.2 -72.4)
LCHlch(48.0 105.9 316.8)
OKLCHoklch(0.587 0.268 309.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2cef on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#ac2cef on black: 4.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue93.7%

CMYK percentages

Cyan28.0%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#ac2cef text on a black background

contrast 4.36:1

Card sample

#ac2cef text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2cef in the Color Lab