Skip to content

#cc2f9f

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

RGB
204, 47, 159
HSL
317°, 63%, 49%
CMYK
0, 77, 22, 20
Luminance
0.1737

Every format

HEX#cc2f9f
RGBrgb(204, 47, 159)
HSLhsl(317, 63%, 49%)
CMYKcmyk(0%, 77%, 22%, 20%)
LABlab(48.7 69.5 -24.7)
LCHlch(48.7 73.7 340.4)
OKLCHoklch(0.587 0.219 342.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.0%
Green18.4%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta77.0%
Yellow22.1%
Key (black)20.0%

Color previews

#cc2f9f text on a black background

contrast 4.47:1

Card sample

#cc2f9f text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2f9f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2f9f in the Color Lab