Skip to content

#cd2ff7

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

RGB
205, 47, 247
HSL
287°, 93%, 58%
CMYK
17, 81, 0, 3
Luminance
0.2173

Every format

HEX#cd2ff7
RGBrgb(205, 47, 247)
HSLhsl(287, 93%, 58%)
CMYKcmyk(17%, 81%, 0%, 3%)
LABlab(53.7 83.2 -67.4)
LCHlch(53.7 107.0 321.0)
OKLCHoklch(0.639 0.282 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green18.4%
Blue96.9%

CMYK percentages

Cyan17.0%
Magenta81.0%
Yellow0.0%
Key (black)3.1%

Color previews

#cd2ff7 text on a black background

contrast 5.35:1

Card sample

#cd2ff7 text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ff7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ff7 in the Color Lab