Skip to content

#ac0cfe

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

RGB
172, 12, 254
HSL
280°, 99%, 52%
CMYK
32, 95, 0, 0
Luminance
0.1619

Every format

HEX#ac0cfe
RGBrgb(172, 12, 254)
HSLhsl(280, 99%, 52%)
CMYKcmyk(32%, 95%, 0%, 0%)
LABlab(47.2 86.0 -82.1)
LCHlch(47.2 118.9 316.3)
OKLCHoklch(0.585 0.296 307.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0cfe on white: 4.96:1
AA ✓ pass · AA-large · AAA
Aa
#ac0cfe on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green4.7%
Blue99.6%

CMYK percentages

Cyan32.3%
Magenta95.3%
Yellow0.0%
Key (black)0.4%

Color previews

#ac0cfe text on a black background

contrast 4.24:1

Card sample

#ac0cfe text on a white background

contrast 4.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0cfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0cfe in the Color Lab