Skip to content

#ad2df6

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

RGB
173, 45, 246
HSL
278°, 92%, 57%
CMYK
30, 82, 0, 4
Luminance
0.1741

Every format

HEX#ad2df6
RGBrgb(173, 45, 246)
HSLhsl(278, 92%, 57%)
CMYKcmyk(30%, 82%, 0%, 4%)
LABlab(48.8 78.5 -75.1)
LCHlch(48.8 108.6 316.3)
OKLCHoklch(0.594 0.274 308.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2df6 on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#ad2df6 on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green17.6%
Blue96.5%

CMYK percentages

Cyan29.7%
Magenta81.7%
Yellow0.0%
Key (black)3.5%

Color previews

#ad2df6 text on a black background

contrast 4.48:1

Card sample

#ad2df6 text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2df6 in the Color Lab