Skip to content

#ac15df

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

RGB
172, 21, 223
HSL
285°, 83%, 48%
CMYK
23, 91, 0, 13
Luminance
0.1463

Every format

HEX#ac15df
RGBrgb(172, 21, 223)
HSLhsl(285, 83%, 48%)
CMYKcmyk(23%, 91%, 0%, 13%)
LABlab(45.1 79.2 -68.0)
LCHlch(45.1 104.4 319.3)
OKLCHoklch(0.563 0.269 314.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac15df on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#ac15df on black: 3.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green8.2%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta90.6%
Yellow0.0%
Key (black)12.5%

Color previews

#ac15df text on a black background

contrast 3.93:1

Card sample

#ac15df text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac15df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac15df in the Color Lab