Skip to content

#cc2fac

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

RGB
204, 47, 172
HSL
312°, 63%, 49%
CMYK
0, 77, 16, 20
Luminance
0.1785

Every format

HEX#cc2fac
RGBrgb(204, 47, 172)
HSLhsl(312, 63%, 49%)
CMYKcmyk(0%, 77%, 16%, 20%)
LABlab(49.3 71.2 -31.5)
LCHlch(49.3 77.8 336.1)
OKLCHoklch(0.593 0.227 337.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2fac on white: 4.60:1
AA ✓ pass · AA-large · AAA
Aa
#cc2fac on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green18.4%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta77.0%
Yellow15.7%
Key (black)20.0%

Color previews

#cc2fac text on a black background

contrast 4.57:1

Card sample

#cc2fac text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc2fac in the Color Lab