Skip to content

#ac2def

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

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

Every format

HEX#ac2def
RGBrgb(172, 45, 239)
HSLhsl(279, 86%, 56%)
CMYKcmyk(28%, 81%, 0%, 6%)
LABlab(48.1 77.0 -72.3)
LCHlch(48.1 105.6 316.8)
OKLCHoklch(0.588 0.267 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2def on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#ac2def on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.6%
Blue93.7%

CMYK percentages

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

Color previews

#ac2def text on a black background

contrast 4.38:1

Card sample

#ac2def text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2def in the Color Lab