Skip to content

#ac4dec

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

RGB
172, 77, 236
HSL
276°, 81%, 61%
CMYK
27, 67, 0, 8
Luminance
0.2013

Every format

HEX#ac4dec
RGBrgb(172, 77, 236)
HSLhsl(276, 81%, 61%)
CMYKcmyk(27%, 67%, 0%, 8%)
LABlab(52.0 64.7 -64.3)
LCHlch(52.0 91.2 315.2)
OKLCHoklch(0.615 0.232 308.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4dec on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#ac4dec on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green30.2%
Blue92.5%

CMYK percentages

Cyan27.1%
Magenta67.4%
Yellow0.0%
Key (black)7.5%

Color previews

#ac4dec text on a black background

contrast 5.03:1

Card sample

#ac4dec text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4dec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4dec in the Color Lab