Skip to content

#ce2dfc

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

RGB
206, 45, 252
HSL
287°, 97%, 58%
CMYK
18, 82, 0, 1
Luminance
0.2203

Every format

HEX#ce2dfc
RGBrgb(206, 45, 252)
HSLhsl(287, 97%, 58%)
CMYKcmyk(18%, 82%, 0%, 1%)
LABlab(54.1 84.7 -69.7)
LCHlch(54.1 109.7 320.6)
OKLCHoklch(0.642 0.287 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce2dfc on white: 3.89:1
AA ✗ fail · AA-large · AAA
Aa
#ce2dfc on black: 5.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green17.6%
Blue98.8%

CMYK percentages

Cyan18.3%
Magenta82.1%
Yellow0.0%
Key (black)1.2%

Color previews

#ce2dfc text on a black background

contrast 5.41:1

Card sample

#ce2dfc text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 45, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 45, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce2dfc;
background: linear-gradient(135deg, #ce2dfc, #FC2DA0);

Monochromatic scale

Palettes built from #ce2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2dfc in the Color Lab