Skip to content

#cc2fdb

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

RGB
204, 47, 219
HSL
295°, 71%, 52%
CMYK
7, 79, 0, 14
Luminance
0.1998

Every format

HEX#cc2fdb
RGBrgb(204, 47, 219)
HSLhsl(295, 71%, 52%)
CMYKcmyk(7%, 79%, 0%, 14%)
LABlab(51.8 78.3 -54.7)
LCHlch(51.8 95.5 325.0)
OKLCHoklch(0.619 0.260 324.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2fdb on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#cc2fdb on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.4%
Blue85.9%

CMYK percentages

Cyan6.8%
Magenta78.5%
Yellow0.0%
Key (black)14.1%

Color previews

#cc2fdb text on a black background

contrast 5.00:1

Card sample

#cc2fdb text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2fdb in the Color Lab