Skip to content

#cd2efc

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

RGB
205, 46, 252
HSL
286°, 97%, 58%
CMYK
19, 82, 0, 1
Luminance
0.2196

Every format

HEX#cd2efc
RGBrgb(205, 46, 252)
HSLhsl(286, 97%, 58%)
CMYKcmyk(19%, 82%, 0%, 1%)
LABlab(54.0 84.3 -69.8)
LCHlch(54.0 109.4 320.4)
OKLCHoklch(0.641 0.286 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green18.0%
Blue98.8%

CMYK percentages

Cyan18.7%
Magenta81.7%
Yellow0.0%
Key (black)1.2%

Color previews

#cd2efc text on a black background

contrast 5.39:1

Card sample

#cd2efc text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2efc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2efc in the Color Lab