Skip to content

#cd2ffc

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

RGB
205, 47, 252
HSL
286°, 97%, 59%
CMYK
19, 81, 0, 1
Luminance
0.2204

Every format

HEX#cd2ffc
RGBrgb(205, 47, 252)
HSLhsl(286, 97%, 59%)
CMYKcmyk(19%, 81%, 0%, 1%)
LABlab(54.1 84.0 -69.6)
LCHlch(54.1 109.2 320.4)
OKLCHoklch(0.642 0.286 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2ffc on white: 3.88:1
AA ✗ fail · AA-large · AAA
Aa
#cd2ffc on black: 5.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue98.8%

CMYK percentages

Cyan18.7%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#cd2ffc text on a black background

contrast 5.41:1

Card sample

#cd2ffc text on a white background

contrast 3.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ffc in the Color Lab