Skip to content

#ac4af8

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

RGB
172, 74, 248
HSL
274°, 93%, 63%
CMYK
31, 70, 0, 3
Luminance
0.2045

Every format

HEX#ac4af8
RGBrgb(172, 74, 248)
HSLhsl(274, 93%, 63%)
CMYKcmyk(31%, 70%, 0%, 3%)
LABlab(52.3 68.5 -70.4)
LCHlch(52.3 98.3 314.2)
OKLCHoklch(0.620 0.248 306.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac4af8 on white: 4.13:1
AA ✗ fail · AA-large · AAA
Aa
#ac4af8 on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green29.0%
Blue97.3%

CMYK percentages

Cyan30.6%
Magenta70.2%
Yellow0.0%
Key (black)2.7%

Color previews

#ac4af8 text on a black background

contrast 5.09:1

Card sample

#ac4af8 text on a white background

contrast 4.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac4af8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac4af8 in the Color Lab