Skip to content

#cc0df0

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

RGB
204, 13, 240
HSL
291°, 90%, 50%
CMYK
15, 95, 0, 6
Luminance
0.1942

Every format

HEX#cc0df0
RGBrgb(204, 13, 240)
HSLhsl(291, 90%, 50%)
CMYKcmyk(15%, 95%, 0%, 6%)
LABlab(51.2 87.5 -67.6)
LCHlch(51.2 110.6 322.3)
OKLCHoklch(0.619 0.293 319.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc0df0 on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#cc0df0 on black: 4.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green5.1%
Blue94.1%

CMYK percentages

Cyan15.0%
Magenta94.6%
Yellow0.0%
Key (black)5.9%

Color previews

#cc0df0 text on a black background

contrast 4.88:1

Card sample

#cc0df0 text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc0df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc0df0 in the Color Lab