Skip to content

#ac2ceb

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

RGB
172, 44, 235
HSL
280°, 83%, 55%
CMYK
27, 81, 0, 8
Luminance
0.1657

Every format

HEX#ac2ceb
RGBrgb(172, 44, 235)
HSLhsl(280, 83%, 55%)
CMYKcmyk(27%, 81%, 0%, 8%)
LABlab(47.7 76.5 -70.7)
LCHlch(47.7 104.1 317.3)
OKLCHoklch(0.584 0.265 310.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ceb on white: 4.87:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ceb on black: 4.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green17.3%
Blue92.2%

CMYK percentages

Cyan26.8%
Magenta81.3%
Yellow0.0%
Key (black)7.8%

Color previews

#ac2ceb text on a black background

contrast 4.31:1

Card sample

#ac2ceb text on a white background

contrast 4.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ceb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2ceb in the Color Lab