Skip to content

#cc1dfb

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

RGB
204, 29, 251
HSL
287°, 97%, 55%
CMYK
19, 88, 0, 2
Luminance
0.2068

Every format

HEX#cc1dfb
RGBrgb(204, 29, 251)
HSLhsl(287, 97%, 55%)
CMYKcmyk(19%, 88%, 0%, 2%)
LABlab(52.6 87.4 -71.5)
LCHlch(52.6 112.9 320.7)
OKLCHoklch(0.631 0.295 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc1dfb on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#cc1dfb on black: 5.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green11.4%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta88.4%
Yellow0.0%
Key (black)1.6%

Color previews

#cc1dfb text on a black background

contrast 5.14:1

Card sample

#cc1dfb text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc1dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc1dfb in the Color Lab