Skip to content

#cd2ffd

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

RGB
205, 47, 253
HSL
286°, 98%, 59%
CMYK
19, 81, 0, 1
Luminance
0.2210

Every format

HEX#cd2ffd
RGBrgb(205, 47, 253)
HSLhsl(286, 98%, 59%)
CMYKcmyk(19%, 81%, 0%, 1%)
LABlab(54.1 84.2 -70.1)
LCHlch(54.1 109.6 320.2)
OKLCHoklch(0.643 0.286 316.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2ffd on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#cd2ffd on black: 5.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue99.2%

CMYK percentages

Cyan19.0%
Magenta81.4%
Yellow0.0%
Key (black)0.8%

Color previews

#cd2ffd text on a black background

contrast 5.42:1

Card sample

#cd2ffd text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ffd in the Color Lab