Skip to content

#ac4afb

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

RGB
172, 74, 251
HSL
273°, 96%, 64%
CMYK
32, 71, 0, 2
Luminance
0.2063

Every format

HEX#ac4afb
RGBrgb(172, 74, 251)
HSLhsl(273, 96%, 64%)
CMYKcmyk(32%, 71%, 0%, 2%)
LABlab(52.5 69.2 -71.8)
LCHlch(52.5 99.7 314.0)
OKLCHoklch(0.622 0.251 305.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4afb on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#ac4afb on black: 5.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green29.0%
Blue98.4%

CMYK percentages

Cyan31.5%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#ac4afb text on a black background

contrast 5.13:1

Card sample

#ac4afb text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4afb in the Color Lab