Skip to content

#cc02f2

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

RGB
204, 2, 242
HSL
291°, 98%, 48%
CMYK
16, 99, 0, 5
Luminance
0.1929

Every format

HEX#cc02f2
RGBrgb(204, 2, 242)
HSLhsl(291, 98%, 48%)
CMYKcmyk(16%, 99%, 0%, 5%)
LABlab(51.0 88.7 -69.0)
LCHlch(51.0 112.4 322.1)
OKLCHoklch(0.618 0.297 319.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc02f2 on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#cc02f2 on black: 4.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green0.8%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta99.2%
Yellow0.0%
Key (black)5.1%

Color previews

#cc02f2 text on a black background

contrast 4.86:1

Card sample

#cc02f2 text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc02f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc02f2 in the Color Lab