Skip to content

#ac00ef

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

RGB
172, 0, 239
HSL
283°, 100%, 47%
CMYK
28, 100, 0, 6
Luminance
0.1500

Every format

HEX#ac00ef
RGBrgb(172, 0, 239)
HSLhsl(283, 100%, 47%)
CMYKcmyk(28%, 100%, 0%, 6%)
LABlab(45.6 84.3 -76.3)
LCHlch(45.6 113.7 317.8)
OKLCHoklch(0.571 0.287 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac00ef on white: 5.25:1
AA ✓ pass · AA-large · AAA
Aa
#ac00ef on black: 4.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green0.0%
Blue93.7%

CMYK percentages

Cyan28.0%
Magenta100.0%
Yellow0.0%
Key (black)6.3%

Color previews

#ac00ef text on a black background

contrast 4.00:1

Card sample

#ac00ef text on a white background

contrast 5.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac00ef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac00ef in the Color Lab