Skip to content

#ad0ce2

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

RGB
173, 12, 226
HSL
285°, 90%, 47%
CMYK
24, 95, 0, 11
Luminance
0.1464

Every format

HEX#ad0ce2
RGBrgb(173, 12, 226)
HSLhsl(285, 90%, 47%)
CMYKcmyk(24%, 95%, 0%, 11%)
LABlab(45.1 81.0 -69.7)
LCHlch(45.1 106.9 319.3)
OKLCHoklch(0.565 0.275 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad0ce2 on white: 5.35:1
AA ✓ pass · AA-large · AAA
Aa
#ad0ce2 on black: 3.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green4.7%
Blue88.6%

CMYK percentages

Cyan23.5%
Magenta94.7%
Yellow0.0%
Key (black)11.4%

Color previews

#ad0ce2 text on a black background

contrast 3.93:1

Card sample

#ad0ce2 text on a white background

contrast 5.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad0ce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad0ce2 in the Color Lab