Skip to content

#cc1df6

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

RGB
204, 29, 246
HSL
288°, 92%, 54%
CMYK
17, 88, 0, 4
Luminance
0.2037

Every format

HEX#cc1df6
RGBrgb(204, 29, 246)
HSLhsl(288, 92%, 54%)
CMYKcmyk(17%, 88%, 0%, 4%)
LABlab(52.3 86.5 -69.2)
LCHlch(52.3 110.8 321.3)
OKLCHoklch(0.628 0.292 318.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc1df6 on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#cc1df6 on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green11.4%
Blue96.5%

CMYK percentages

Cyan17.1%
Magenta88.2%
Yellow0.0%
Key (black)3.5%

Color previews

#cc1df6 text on a black background

contrast 5.07:1

Card sample

#cc1df6 text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc1df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc1df6 in the Color Lab