Skip to content

#ad28df

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

RGB
173, 40, 223
HSL
284°, 74%, 52%
CMYK
22, 82, 0, 13
Luminance
0.1573

Every format

HEX#ad28df
RGBrgb(173, 40, 223)
HSLhsl(284, 74%, 52%)
CMYKcmyk(22%, 82%, 0%, 13%)
LABlab(46.6 75.4 -65.6)
LCHlch(46.6 100.0 319.0)
OKLCHoklch(0.574 0.258 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad28df on white: 5.07:1
AA ✓ pass · AA-large · AAA
Aa
#ad28df on black: 4.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green15.7%
Blue87.5%

CMYK percentages

Cyan22.4%
Magenta82.1%
Yellow0.0%
Key (black)12.5%

Color previews

#ad28df text on a black background

contrast 4.15:1

Card sample

#ad28df text on a white background

contrast 5.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad28df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad28df in the Color Lab