Skip to content

#cf2ac9

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

RGB
207, 42, 201
HSL
302°, 66%, 49%
CMYK
0, 80, 3, 19
Luminance
0.1914

Every format

HEX#cf2ac9
RGBrgb(207, 42, 201)
HSLhsl(302, 66%, 49%)
CMYKcmyk(0%, 80%, 3%, 19%)
LABlab(50.9 77.3 -45.9)
LCHlch(50.9 89.9 329.3)
OKLCHoklch(0.610 0.253 329.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2ac9 on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#cf2ac9 on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green16.5%
Blue78.8%

CMYK percentages

Cyan0.0%
Magenta79.7%
Yellow2.9%
Key (black)18.8%

Color previews

#cf2ac9 text on a black background

contrast 4.83:1

Card sample

#cf2ac9 text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2ac9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2ac9 in the Color Lab