Skip to content

#ad2cf9

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

RGB
173, 44, 249
HSL
278°, 95%, 58%
CMYK
31, 82, 0, 2
Luminance
0.1753

Every format

HEX#ad2cf9
RGBrgb(173, 44, 249)
HSLhsl(278, 95%, 58%)
CMYKcmyk(31%, 82%, 0%, 2%)
LABlab(48.9 79.3 -76.6)
LCHlch(48.9 110.3 316.0)
OKLCHoklch(0.596 0.277 308.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2cf9 on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#ad2cf9 on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green17.3%
Blue97.6%

CMYK percentages

Cyan30.5%
Magenta82.3%
Yellow0.0%
Key (black)2.4%

Color previews

#ad2cf9 text on a black background

contrast 4.51:1

Card sample

#ad2cf9 text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2cf9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2cf9 in the Color Lab