Skip to content

#ac1af3

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

RGB
172, 26, 243
HSL
280°, 90%, 53%
CMYK
29, 89, 0, 5
Luminance
0.1598

Every format

HEX#ac1af3
RGBrgb(172, 26, 243)
HSLhsl(280, 90%, 53%)
CMYKcmyk(29%, 89%, 0%, 5%)
LABlab(47.0 82.0 -76.4)
LCHlch(47.0 112.1 317.0)
OKLCHoklch(0.581 0.282 309.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac1af3 on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#ac1af3 on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green10.2%
Blue95.3%

CMYK percentages

Cyan29.2%
Magenta89.3%
Yellow0.0%
Key (black)4.7%

Color previews

#ac1af3 text on a black background

contrast 4.20:1

Card sample

#ac1af3 text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac1af3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac1af3 in the Color Lab