Skip to content

#cc22ff

a balanced, electric violet · warm · closest name: magenta

RGB
204, 34, 255
HSL
286°, 100%, 57%
CMYK
20, 87, 0, 0
Luminance
0.2120

Every format

HEX#cc22ff
RGBrgb(204, 34, 255)
HSLhsl(286, 100%, 57%)
CMYKcmyk(20%, 87%, 0%, 0%)
LABlab(53.2 87.2 -72.8)
LCHlch(53.2 113.6 320.2)
OKLCHoklch(0.636 0.296 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc22ff on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#cc22ff on black: 5.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green13.3%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta86.7%
Yellow0.0%
Key (black)0.0%

Color previews

#cc22ff text on a black background

contrast 5.24:1

Card sample

#cc22ff text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc22ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc22ff in the Color Lab