Skip to content

#cc0fdf

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

RGB
204, 15, 223
HSL
295°, 87%, 47%
CMYK
9, 93, 0, 13
Luminance
0.1851

Every format

HEX#cc0fdf
RGBrgb(204, 15, 223)
HSLhsl(295, 87%, 47%)
CMYKcmyk(9%, 93%, 0%, 13%)
LABlab(50.1 84.7 -59.7)
LCHlch(50.1 103.6 324.8)
OKLCHoklch(0.608 0.281 323.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc0fdf on white: 4.47:1
AA ✗ fail · AA-large · AAA
Aa
#cc0fdf on black: 4.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green5.9%
Blue87.5%

CMYK percentages

Cyan8.5%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#cc0fdf text on a black background

contrast 4.70:1

Card sample

#cc0fdf text on a white background

contrast 4.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc0fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc0fdf in the Color Lab