Skip to content

#ad2fdb

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

RGB
173, 47, 219
HSL
284°, 71%, 52%
CMYK
21, 79, 0, 14
Luminance
0.1603

Every format

HEX#ad2fdb
RGBrgb(173, 47, 219)
HSLhsl(284, 71%, 52%)
CMYKcmyk(21%, 79%, 0%, 14%)
LABlab(47.0 72.7 -62.7)
LCHlch(47.0 96.0 319.2)
OKLCHoklch(0.576 0.249 314.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad2fdb on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#ad2fdb on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green18.4%
Blue85.9%

CMYK percentages

Cyan21.0%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#ad2fdb text on a black background

contrast 4.21:1

Card sample

#ad2fdb text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad2fdb in the Color Lab