Skip to content

#ad0cd2

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

RGB
173, 12, 210
HSL
289°, 89%, 44%
CMYK
18, 94, 0, 18
Luminance
0.1380

Every format

HEX#ad0cd2
RGBrgb(173, 12, 210)
HSLhsl(289, 89%, 44%)
CMYKcmyk(18%, 94%, 0%, 18%)
LABlab(44.0 78.2 -62.5)
LCHlch(44.0 100.1 321.4)
OKLCHoklch(0.552 0.263 317.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad0cd2 on white: 5.59:1
AA ✓ pass · AA-large · AAA
Aa
#ad0cd2 on black: 3.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green4.7%
Blue82.4%

CMYK percentages

Cyan17.6%
Magenta94.3%
Yellow0.0%
Key (black)17.6%

Color previews

#ad0cd2 text on a black background

contrast 3.76:1

Card sample

#ad0cd2 text on a white background

contrast 5.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad0cd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad0cd2 in the Color Lab