Skip to content

#ac2fcb

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

RGB
172, 47, 203
HSL
288°, 62%, 49%
CMYK
15, 77, 0, 20
Luminance
0.1512

Every format

HEX#ac2fcb
RGBrgb(172, 47, 203)
HSLhsl(288, 62%, 49%)
CMYKcmyk(15%, 77%, 0%, 20%)
LABlab(45.8 69.5 -55.5)
LCHlch(45.8 88.9 321.4)
OKLCHoklch(0.564 0.236 318.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2fcb on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#ac2fcb on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue79.6%

CMYK percentages

Cyan15.3%
Magenta76.8%
Yellow0.0%
Key (black)20.4%

Color previews

#ac2fcb text on a black background

contrast 4.02:1

Card sample

#ac2fcb text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2fcb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2fcb in the Color Lab