Skip to content

#ac2cf9

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

RGB
172, 44, 249
HSL
278°, 95%, 58%
CMYK
31, 82, 0, 2
Luminance
0.1741

Every format

HEX#ac2cf9
RGBrgb(172, 44, 249)
HSLhsl(278, 95%, 58%)
CMYKcmyk(31%, 82%, 0%, 2%)
LABlab(48.8 79.2 -76.8)
LCHlch(48.8 110.3 315.9)
OKLCHoklch(0.595 0.277 307.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2cf9 on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#ac2cf9 on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue97.6%

CMYK percentages

Cyan30.9%
Magenta82.3%
Yellow0.0%
Key (black)2.4%

Color previews

#ac2cf9 text on a black background

contrast 4.48:1

Card sample

#ac2cf9 text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2cf9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2cf9 in the Color Lab