Skip to content

#cd2cff

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

RGB
205, 44, 255
HSL
286°, 100%, 59%
CMYK
20, 83, 0, 0
Luminance
0.2200

Every format

HEX#cd2cff
RGBrgb(205, 44, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(20%, 83%, 0%, 0%)
LABlab(54.0 85.3 -71.4)
LCHlch(54.0 111.2 320.1)
OKLCHoklch(0.642 0.290 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green17.3%
Blue100.0%

CMYK percentages

Cyan19.6%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#cd2cff text on a black background

contrast 5.40:1

Card sample

#cd2cff text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2cff in the Color Lab