Skip to content

#cf02cc

a dark, electric magenta / pink · warm · closest name: magenta

RGB
207, 2, 204
HSL
301°, 98%, 41%
CMYK
0, 99, 1, 19
Luminance
0.1767

Every format

HEX#cf02cc
RGBrgb(207, 2, 204)
HSLhsl(301, 98%, 41%)
CMYKcmyk(0%, 99%, 1%, 19%)
LABlab(49.1 83.3 -50.5)
LCHlch(49.1 97.4 328.8)
OKLCHoklch(0.598 0.273 329.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf02cc on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#cf02cc on black: 4.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green0.8%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow1.4%
Key (black)18.8%

Color previews

#cf02cc text on a black background

contrast 4.53:1

Card sample

#cf02cc text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf02cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf02cc in the Color Lab