Skip to content

#cc5cff

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

RGB
204, 92, 255
HSL
281°, 100%, 68%
CMYK
20, 64, 0, 0
Luminance
0.2771

Every format

HEX#cc5cff
RGBrgb(204, 92, 255)
HSLhsl(281, 100%, 68%)
CMYKcmyk(20%, 64%, 0%, 0%)
LABlab(59.6 68.8 -62.4)
LCHlch(59.6 92.8 317.8)
OKLCHoklch(0.682 0.242 313.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc5cff on white: 3.21:1
AA ✗ fail · AA-large · AAA
Aa
#cc5cff on black: 6.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green36.1%
Blue100.0%

CMYK percentages

Cyan20.0%
Magenta63.9%
Yellow0.0%
Key (black)0.0%

Color previews

#cc5cff text on a black background

contrast 6.54:1

Card sample

#cc5cff text on a white background

contrast 3.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc5cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc5cff in the Color Lab