Skip to content

#ac4af4

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

RGB
172, 74, 244
HSL
275°, 89%, 62%
CMYK
30, 70, 0, 4
Luminance
0.2020

Every format

HEX#ac4af4
RGBrgb(172, 74, 244)
HSLhsl(275, 89%, 62%)
CMYKcmyk(30%, 70%, 0%, 4%)
LABlab(52.1 67.7 -68.7)
LCHlch(52.1 96.4 314.6)
OKLCHoklch(0.617 0.244 306.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4af4 on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#ac4af4 on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green29.0%
Blue95.7%

CMYK percentages

Cyan29.5%
Magenta69.7%
Yellow0.0%
Key (black)4.3%

Color previews

#ac4af4 text on a black background

contrast 5.04:1

Card sample

#ac4af4 text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4af4 in the Color Lab