Skip to content

#ac0fd9

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

RGB
172, 15, 217
HSL
287°, 87%, 46%
CMYK
21, 93, 0, 15
Luminance
0.1412

Every format

HEX#ac0fd9
RGBrgb(172, 15, 217)
HSLhsl(287, 87%, 46%)
CMYKcmyk(21%, 93%, 0%, 15%)
LABlab(44.4 78.9 -65.8)
LCHlch(44.4 102.8 320.2)
OKLCHoklch(0.557 0.267 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0fd9 on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#ac0fd9 on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green5.9%
Blue85.1%

CMYK percentages

Cyan20.7%
Magenta93.1%
Yellow0.0%
Key (black)14.9%

Color previews

#ac0fd9 text on a black background

contrast 3.82:1

Card sample

#ac0fd9 text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0fd9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0fd9 in the Color Lab