Skip to content

#ac2fdb

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

RGB
172, 47, 219
HSL
284°, 71%, 52%
CMYK
22, 79, 0, 14
Luminance
0.1592

Every format

HEX#ac2fdb
RGBrgb(172, 47, 219)
HSLhsl(284, 71%, 52%)
CMYKcmyk(22%, 79%, 0%, 14%)
LABlab(46.9 72.5 -62.9)
LCHlch(46.9 96.0 319.0)
OKLCHoklch(0.575 0.249 314.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red67.5%
Green18.4%
Blue85.9%

CMYK percentages

Cyan21.5%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#ac2fdb text on a black background

contrast 4.18:1

Card sample

#ac2fdb text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fdb in the Color Lab