Skip to content

#cd2df6

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

RGB
205, 45, 246
HSL
288°, 92%, 57%
CMYK
17, 82, 0, 4
Luminance
0.2151

Every format

HEX#cd2df6
RGBrgb(205, 45, 246)
HSLhsl(288, 92%, 57%)
CMYKcmyk(17%, 82%, 0%, 4%)
LABlab(53.5 83.5 -67.2)
LCHlch(53.5 107.2 321.2)
OKLCHoklch(0.637 0.283 317.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2df6 on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#cd2df6 on black: 5.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green17.6%
Blue96.5%

CMYK percentages

Cyan16.7%
Magenta81.7%
Yellow0.0%
Key (black)3.5%

Color previews

#cd2df6 text on a black background

contrast 5.30:1

Card sample

#cd2df6 text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2df6 in the Color Lab