Skip to content

#ac3dec

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

RGB
172, 61, 236
HSL
278°, 82%, 58%
CMYK
27, 74, 0, 8
Luminance
0.1816

Every format

HEX#ac3dec
RGBrgb(172, 61, 236)
HSLhsl(278, 82%, 58%)
CMYKcmyk(27%, 74%, 0%, 8%)
LABlab(49.7 71.1 -68.0)
LCHlch(49.7 98.4 316.3)
OKLCHoklch(0.598 0.250 309.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac3dec on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#ac3dec on black: 4.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green23.9%
Blue92.5%

CMYK percentages

Cyan27.1%
Magenta74.2%
Yellow0.0%
Key (black)7.5%

Color previews

#ac3dec text on a black background

contrast 4.63:1

Card sample

#ac3dec text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac3dec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac3dec in the Color Lab