Skip to content

#ac2feb

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

RGB
172, 47, 235
HSL
280°, 83%, 55%
CMYK
27, 80, 0, 8
Luminance
0.1680

Every format

HEX#ac2feb
RGBrgb(172, 47, 235)
HSLhsl(280, 83%, 55%)
CMYKcmyk(27%, 80%, 0%, 8%)
LABlab(48.0 75.6 -70.2)
LCHlch(48.0 103.1 317.1)
OKLCHoklch(0.586 0.262 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2feb on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#ac2feb on black: 4.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue92.2%

CMYK percentages

Cyan26.8%
Magenta80.0%
Yellow0.0%
Key (black)7.8%

Color previews

#ac2feb text on a black background

contrast 4.36:1

Card sample

#ac2feb text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2feb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2feb in the Color Lab