Skip to content

#cc2adf

a balanced, vivid magenta / pink · warm · closest name: magenta

RGB
204, 42, 223
HSL
294°, 74%, 52%
CMYK
9, 81, 0, 13
Luminance
0.1982

Every format

HEX#cc2adf
RGBrgb(204, 42, 223)
HSLhsl(294, 74%, 52%)
CMYKcmyk(9%, 81%, 0%, 13%)
LABlab(51.6 80.2 -57.3)
LCHlch(51.6 98.5 324.5)
OKLCHoklch(0.619 0.267 323.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2adf on white: 4.23:1
AA ✗ fail · AA-large · AAA
Aa
#cc2adf on black: 4.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green16.5%
Blue87.5%

CMYK percentages

Cyan8.5%
Magenta81.2%
Yellow0.0%
Key (black)12.5%

Color previews

#cc2adf text on a black background

contrast 4.96:1

Card sample

#cc2adf text on a white background

contrast 4.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 42, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 42, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc2adf;
background: linear-gradient(135deg, #cc2adf, #DF2A79);

Monochromatic scale

Palettes built from #cc2adf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2adf in the Color Lab