Skip to content

#ac4fdc

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

RGB
172, 79, 220
HSL
280°, 67%, 59%
CMYK
22, 64, 0, 14
Luminance
0.1953

Every format

HEX#ac4fdc
RGBrgb(172, 79, 220)
HSLhsl(280, 67%, 59%)
CMYKcmyk(22%, 64%, 0%, 14%)
LABlab(51.3 60.4 -56.4)
LCHlch(51.3 82.6 317.0)
OKLCHoklch(0.606 0.214 312.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4fdc on white: 4.28:1
AA ✗ fail · AA-large · AAA
Aa
#ac4fdc on black: 4.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green31.0%
Blue86.3%

CMYK percentages

Cyan21.8%
Magenta64.1%
Yellow0.0%
Key (black)13.7%

Color previews

#ac4fdc text on a black background

contrast 4.91:1

Card sample

#ac4fdc text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4fdc in the Color Lab