Skip to content

#cc3dfb

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

RGB
204, 61, 251
HSL
285°, 96%, 61%
CMYK
19, 76, 0, 2
Luminance
0.2314

Every format

HEX#cc3dfb
RGBrgb(204, 61, 251)
HSLhsl(285, 96%, 61%)
CMYKcmyk(19%, 76%, 0%, 2%)
LABlab(55.2 79.8 -67.2)
LCHlch(55.2 104.3 319.9)
OKLCHoklch(0.650 0.273 316.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc3dfb on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#cc3dfb on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green23.9%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#cc3dfb text on a black background

contrast 5.63:1

Card sample

#cc3dfb text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc3dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cc3dfb in the Color Lab