Skip to content

#ac3af4

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

RGB
172, 58, 244
HSL
277°, 89%, 59%
CMYK
30, 76, 0, 4
Luminance
0.1833

Every format

HEX#ac3af4
RGBrgb(172, 58, 244)
HSLhsl(277, 89%, 59%)
CMYKcmyk(30%, 76%, 0%, 4%)
LABlab(49.9 73.9 -72.2)
LCHlch(49.9 103.3 315.7)
OKLCHoklch(0.601 0.261 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac3af4 on white: 4.50:1
AA ✓ pass · AA-large · AAA
Aa
#ac3af4 on black: 4.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green22.7%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta76.2%
Yellow0.0%
Key (black)4.3%

Color previews

#ac3af4 text on a black background

contrast 4.67:1

Card sample

#ac3af4 text on a white background

contrast 4.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac3af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac3af4 in the Color Lab