Skip to content

#ac2af3

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

RGB
172, 42, 243
HSL
279°, 89%, 56%
CMYK
29, 83, 0, 5
Luminance
0.1690

Every format

HEX#ac2af3
RGBrgb(172, 42, 243)
HSLhsl(279, 89%, 56%)
CMYKcmyk(29%, 83%, 0%, 5%)
LABlab(48.1 78.6 -74.5)
LCHlch(48.1 108.3 316.5)
OKLCHoklch(0.589 0.273 309.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2af3 on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#ac2af3 on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green16.5%
Blue95.3%

CMYK percentages

Cyan29.2%
Magenta82.7%
Yellow0.0%
Key (black)4.7%

Color previews

#ac2af3 text on a black background

contrast 4.38:1

Card sample

#ac2af3 text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2af3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2af3 in the Color Lab