Skip to content

#cc22cc

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

RGB
204, 34, 204
HSL
300°, 71%, 47%
CMYK
0, 83, 0, 20
Luminance
0.1834

Every format

HEX#cc22cc
RGBrgb(204, 34, 204)
HSLhsl(300, 71%, 47%)
CMYKcmyk(0%, 83%, 0%, 20%)
LABlab(49.9 78.9 -49.2)
LCHlch(49.9 93.0 328.1)
OKLCHoklch(0.603 0.259 328.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc22cc on white: 4.50:1
AA ✓ pass · AA-large · AAA
Aa
#cc22cc on black: 4.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green13.3%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta83.3%
Yellow0.0%
Key (black)20.0%

Color previews

#cc22cc text on a black background

contrast 4.67:1

Card sample

#cc22cc text on a white background

contrast 4.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc22cc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc22cc in the Color Lab