Skip to content

#cf2fd9

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

RGB
207, 47, 217
HSL
297°, 69%, 52%
CMYK
5, 78, 0, 15
Luminance
0.2031

Every format

HEX#cf2fd9
RGBrgb(207, 47, 217)
HSLhsl(297, 69%, 52%)
CMYKcmyk(5%, 78%, 0%, 15%)
LABlab(52.2 78.5 -53.0)
LCHlch(52.2 94.7 326.0)
OKLCHoklch(0.622 0.260 325.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2fd9 on white: 4.15:1
AA ✗ fail · AA-large · AAA
Aa
#cf2fd9 on black: 5.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green18.4%
Blue85.1%

CMYK percentages

Cyan4.6%
Magenta78.3%
Yellow0.0%
Key (black)14.9%

Color previews

#cf2fd9 text on a black background

contrast 5.06:1

Card sample

#cf2fd9 text on a white background

contrast 4.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2fd9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2fd9 in the Color Lab