Skip to content

#ac2eed

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

RGB
172, 46, 237
HSL
280°, 84%, 56%
CMYK
27, 81, 0, 7
Luminance
0.1684

Every format

HEX#ac2eed
RGBrgb(172, 46, 237)
HSLhsl(280, 84%, 56%)
CMYKcmyk(27%, 81%, 0%, 7%)
LABlab(48.1 76.3 -71.2)
LCHlch(48.1 104.4 317.0)
OKLCHoklch(0.587 0.265 310.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2eed on white: 4.81:1
AA ✓ pass · AA-large · AAA
Aa
#ac2eed on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.0%
Blue92.9%

CMYK percentages

Cyan27.4%
Magenta80.6%
Yellow0.0%
Key (black)7.1%

Color previews

#ac2eed text on a black background

contrast 4.37:1

Card sample

#ac2eed text on a white background

contrast 4.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2eed

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2eed in the Color Lab