Skip to content

#ac00f9

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

RGB
172, 0, 249
HSL
281°, 100%, 49%
CMYK
31, 100, 0, 2
Luminance
0.1561

Every format

HEX#ac00f9
RGBrgb(172, 0, 249)
HSLhsl(281, 100%, 49%)
CMYKcmyk(31%, 100%, 0%, 2%)
LABlab(46.5 86.1 -80.6)
LCHlch(46.5 117.9 316.9)
OKLCHoklch(0.579 0.295 308.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac00f9 on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#ac00f9 on black: 4.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.0%
Blue97.6%

CMYK percentages

Cyan30.9%
Magenta100.0%
Yellow0.0%
Key (black)2.4%

Color previews

#ac00f9 text on a black background

contrast 4.12:1

Card sample

#ac00f9 text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac00f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac00f9 in the Color Lab