Skip to content

#ac0cf8

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

RGB
172, 12, 248
HSL
281°, 94%, 51%
CMYK
31, 95, 0, 3
Luminance
0.1581

Every format

HEX#ac0cf8
RGBrgb(172, 12, 248)
HSLhsl(281, 94%, 51%)
CMYKcmyk(31%, 95%, 0%, 3%)
LABlab(46.7 84.9 -79.6)
LCHlch(46.7 116.3 316.8)
OKLCHoklch(0.580 0.291 308.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0cf8 on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#ac0cf8 on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green4.7%
Blue97.3%

CMYK percentages

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

Color previews

#ac0cf8 text on a black background

contrast 4.16:1

Card sample

#ac0cf8 text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0cf8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0cf8 in the Color Lab