Skip to content

#cc28cf

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

RGB
204, 40, 207
HSL
299°, 68%, 48%
CMYK
1, 81, 0, 19
Luminance
0.1886

Every format

HEX#cc28cf
RGBrgb(204, 40, 207)
HSLhsl(299, 68%, 48%)
CMYKcmyk(1%, 81%, 0%, 19%)
LABlab(50.5 78.1 -49.9)
LCHlch(50.5 92.7 327.4)
OKLCHoklch(0.608 0.257 327.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc28cf on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#cc28cf on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green15.7%
Blue81.2%

CMYK percentages

Cyan1.4%
Magenta80.7%
Yellow0.0%
Key (black)18.8%

Color previews

#cc28cf text on a black background

contrast 4.77:1

Card sample

#cc28cf text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc28cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc28cf in the Color Lab