Skip to content

#ac30fd

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

RGB
172, 48, 253
HSL
276°, 98%, 59%
CMYK
32, 81, 0, 1
Luminance
0.1798

Every format

HEX#ac30fd
RGBrgb(172, 48, 253)
HSLhsl(276, 98%, 59%)
CMYKcmyk(32%, 81%, 0%, 1%)
LABlab(49.5 78.9 -77.9)
LCHlch(49.5 110.9 315.4)
OKLCHoklch(0.601 0.277 306.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac30fd on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#ac30fd on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.8%
Blue99.2%

CMYK percentages

Cyan32.0%
Magenta81.0%
Yellow0.0%
Key (black)0.8%

Color previews

#ac30fd text on a black background

contrast 4.60:1

Card sample

#ac30fd text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac30fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac30fd in the Color Lab