Skip to content

#ac1fdb

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

RGB
172, 31, 219
HSL
285°, 75%, 49%
CMYK
22, 86, 0, 14
Luminance
0.1487

Every format

HEX#ac1fdb
RGBrgb(172, 31, 219)
HSLhsl(285, 75%, 49%)
CMYKcmyk(22%, 86%, 0%, 14%)
LABlab(45.5 76.6 -65.2)
LCHlch(45.5 100.7 319.6)
OKLCHoklch(0.565 0.261 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac1fdb on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#ac1fdb on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green12.2%
Blue85.9%

CMYK percentages

Cyan21.5%
Magenta85.8%
Yellow0.0%
Key (black)14.1%

Color previews

#ac1fdb text on a black background

contrast 3.97:1

Card sample

#ac1fdb text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac1fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac1fdb in the Color Lab