Skip to content

#cd2eff

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

RGB
205, 46, 255
HSL
286°, 100%, 59%
CMYK
20, 82, 0, 0
Luminance
0.2215

Every format

HEX#cd2eff
RGBrgb(205, 46, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(20%, 82%, 0%, 0%)
LABlab(54.2 84.8 -71.1)
LCHlch(54.2 110.7 320.0)
OKLCHoklch(0.643 0.289 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2eff on white: 3.87:1
AA ✗ fail · AA-large · AAA
Aa
#cd2eff on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.0%
Blue100.0%

CMYK percentages

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

Color previews

#cd2eff text on a black background

contrast 5.43:1

Card sample

#cd2eff text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2eff in the Color Lab