Skip to content

#cc56ff

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

RGB
204, 86, 255
HSL
282°, 100%, 67%
CMYK
20, 66, 0, 0
Luminance
0.2671

Every format

HEX#cc56ff
RGBrgb(204, 86, 255)
HSLhsl(282, 100%, 67%)
CMYKcmyk(20%, 66%, 0%, 0%)
LABlab(58.7 71.3 -63.8)
LCHlch(58.7 95.7 318.2)
OKLCHoklch(0.675 0.249 313.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc56ff on white: 3.31:1
AA ✗ fail · AA-large · AAA
Aa
#cc56ff on black: 6.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green33.7%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta66.3%
Yellow0.0%
Key (black)0.0%

Color previews

#cc56ff text on a black background

contrast 6.34:1

Card sample

#cc56ff text on a white background

contrast 3.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc56ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc56ff in the Color Lab