Skip to content

#cd2ff1

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

RGB
205, 47, 241
HSL
289°, 87%, 57%
CMYK
15, 81, 0, 6
Luminance
0.2136

Every format

HEX#cd2ff1
RGBrgb(205, 47, 241)
HSLhsl(289, 87%, 57%)
CMYKcmyk(15%, 81%, 0%, 6%)
LABlab(53.4 82.1 -64.7)
LCHlch(53.4 104.5 321.8)
OKLCHoklch(0.635 0.277 319.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2ff1 on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#cd2ff1 on black: 5.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue94.5%

CMYK percentages

Cyan14.9%
Magenta80.5%
Yellow0.0%
Key (black)5.5%

Color previews

#cd2ff1 text on a black background

contrast 5.27:1

Card sample

#cd2ff1 text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ff1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ff1 in the Color Lab