Skip to content

#ac0ce2

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

RGB
172, 12, 226
HSL
285°, 90%, 47%
CMYK
24, 95, 0, 11
Luminance
0.1452

Every format

HEX#ac0ce2
RGBrgb(172, 12, 226)
HSLhsl(285, 90%, 47%)
CMYKcmyk(24%, 95%, 0%, 11%)
LABlab(45.0 80.9 -70.0)
LCHlch(45.0 107.0 319.1)
OKLCHoklch(0.563 0.275 313.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac0ce2 on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#ac0ce2 on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green4.7%
Blue88.6%

CMYK percentages

Cyan23.9%
Magenta94.7%
Yellow0.0%
Key (black)11.4%

Color previews

#ac0ce2 text on a black background

contrast 3.90:1

Card sample

#ac0ce2 text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac0ce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac0ce2 in the Color Lab