Skip to content

#ad2ce2

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

RGB
173, 44, 226
HSL
283°, 76%, 53%
CMYK
24, 81, 0, 11
Luminance
0.1618

Every format

HEX#ad2ce2
RGBrgb(173, 44, 226)
HSLhsl(283, 76%, 53%)
CMYKcmyk(24%, 81%, 0%, 11%)
LABlab(47.2 74.9 -66.4)
LCHlch(47.2 100.1 318.4)
OKLCHoklch(0.579 0.258 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2ce2 on white: 4.96:1
AA ✓ pass · AA-large · AAA
Aa
#ad2ce2 on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green17.3%
Blue88.6%

CMYK percentages

Cyan23.5%
Magenta80.5%
Yellow0.0%
Key (black)11.4%

Color previews

#ad2ce2 text on a black background

contrast 4.24:1

Card sample

#ad2ce2 text on a white background

contrast 4.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2ce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2ce2 in the Color Lab