Skip to content

#ad2fec

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

RGB
173, 47, 236
HSL
280°, 83%, 56%
CMYK
27, 80, 0, 8
Luminance
0.1697

Every format

HEX#ad2fec
RGBrgb(173, 47, 236)
HSLhsl(280, 83%, 56%)
CMYKcmyk(27%, 80%, 0%, 8%)
LABlab(48.2 76.0 -70.4)
LCHlch(48.2 103.5 317.2)
OKLCHoklch(0.588 0.264 310.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2fec on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#ad2fec on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green18.4%
Blue92.5%

CMYK percentages

Cyan26.7%
Magenta80.1%
Yellow0.0%
Key (black)7.5%

Color previews

#ad2fec text on a black background

contrast 4.39:1

Card sample

#ad2fec text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2fec in the Color Lab