Skip to content

#cd2ff9

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

RGB
205, 47, 249
HSL
287°, 94%, 58%
CMYK
18, 81, 0, 2
Luminance
0.2185

Every format

HEX#cd2ff9
RGBrgb(205, 47, 249)
HSLhsl(287, 94%, 58%)
CMYKcmyk(18%, 81%, 0%, 2%)
LABlab(53.9 83.5 -68.3)
LCHlch(53.9 107.9 320.7)
OKLCHoklch(0.640 0.283 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2ff9 on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#cd2ff9 on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue97.6%

CMYK percentages

Cyan17.7%
Magenta81.1%
Yellow0.0%
Key (black)2.4%

Color previews

#cd2ff9 text on a black background

contrast 5.37:1

Card sample

#cd2ff9 text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ff9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ff9 in the Color Lab