Skip to content

#cd2cef

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

RGB
205, 44, 239
HSL
290°, 86%, 56%
CMYK
14, 82, 0, 6
Luminance
0.2101

Every format

HEX#cd2cef
RGBrgb(205, 44, 239)
HSLhsl(290, 86%, 56%)
CMYKcmyk(14%, 82%, 0%, 6%)
LABlab(53.0 82.5 -64.2)
LCHlch(53.0 104.5 322.1)
OKLCHoklch(0.632 0.278 319.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2cef on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#cd2cef on black: 5.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green17.3%
Blue93.7%

CMYK percentages

Cyan14.2%
Magenta81.6%
Yellow0.0%
Key (black)6.3%

Color previews

#cd2cef text on a black background

contrast 5.20:1

Card sample

#cd2cef text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2cef in the Color Lab