Skip to content

#ad2fe3

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

RGB
173, 47, 227
HSL
282°, 76%, 54%
CMYK
24, 79, 0, 11
Luminance
0.1646

Every format

HEX#ad2fe3
RGBrgb(173, 47, 227)
HSLhsl(282, 76%, 54%)
CMYKcmyk(24%, 79%, 0%, 11%)
LABlab(47.6 74.2 -66.3)
LCHlch(47.6 99.5 318.2)
OKLCHoklch(0.582 0.256 312.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2fe3 on white: 4.89:1
AA ✓ pass · AA-large · AAA
Aa
#ad2fe3 on black: 4.29:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green18.4%
Blue89.0%

CMYK percentages

Cyan23.8%
Magenta79.3%
Yellow0.0%
Key (black)11.0%

Color previews

#ad2fe3 text on a black background

contrast 4.29:1

Card sample

#ad2fe3 text on a white background

contrast 4.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2fe3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2fe3 in the Color Lab