Skip to content

#cd2dfe

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

RGB
205, 45, 254
HSL
286°, 99%, 59%
CMYK
19, 82, 0, 0
Luminance
0.2201

Every format

HEX#cd2dfe
RGBrgb(205, 45, 254)
HSLhsl(286, 99%, 59%)
CMYKcmyk(19%, 82%, 0%, 0%)
LABlab(54.0 84.9 -70.8)
LCHlch(54.0 110.5 320.2)
OKLCHoklch(0.642 0.289 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2dfe on white: 3.89:1
AA ✗ fail · AA-large · AAA
Aa
#cd2dfe on black: 5.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green17.6%
Blue99.6%

CMYK percentages

Cyan19.3%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#cd2dfe text on a black background

contrast 5.40:1

Card sample

#cd2dfe text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 45, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 45, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd2dfe;
background: linear-gradient(135deg, #cd2dfe, #FE2DA4);

Monochromatic scale

Palettes built from #cd2dfe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2dfe in the Color Lab