Skip to content

#ac2eef

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

RGB
172, 46, 239
HSL
279°, 86%, 56%
CMYK
28, 81, 0, 6
Luminance
0.1696

Every format

HEX#ac2eef
RGBrgb(172, 46, 239)
HSLhsl(279, 86%, 56%)
CMYKcmyk(28%, 81%, 0%, 6%)
LABlab(48.2 76.7 -72.1)
LCHlch(48.2 105.3 316.8)
OKLCHoklch(0.589 0.267 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2eef on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#ac2eef on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue93.7%

CMYK percentages

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

Color previews

#ac2eef text on a black background

contrast 4.39:1

Card sample

#ac2eef text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2eef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2eef in the Color Lab