Skip to content

#ac2fef

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

RGB
172, 47, 239
HSL
279°, 86%, 56%
CMYK
28, 80, 0, 6
Luminance
0.1704

Every format

HEX#ac2fef
RGBrgb(172, 47, 239)
HSLhsl(279, 86%, 56%)
CMYKcmyk(28%, 80%, 0%, 6%)
LABlab(48.3 76.4 -72.0)
LCHlch(48.3 104.9 316.7)
OKLCHoklch(0.589 0.266 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fef on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fef on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue93.7%

CMYK percentages

Cyan28.0%
Magenta80.3%
Yellow0.0%
Key (black)6.3%

Color previews

#ac2fef text on a black background

contrast 4.41:1

Card sample

#ac2fef text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fef in the Color Lab