Skip to content

#ce2ffc

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

RGB
206, 47, 252
HSL
287°, 97%, 59%
CMYK
18, 81, 0, 1
Luminance
0.2218

Every format

HEX#ce2ffc
RGBrgb(206, 47, 252)
HSLhsl(287, 97%, 59%)
CMYKcmyk(18%, 81%, 0%, 1%)
LABlab(54.2 84.2 -69.4)
LCHlch(54.2 109.1 320.5)
OKLCHoklch(0.643 0.286 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce2ffc on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#ce2ffc on black: 5.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green18.4%
Blue98.8%

CMYK percentages

Cyan18.3%
Magenta81.3%
Yellow0.0%
Key (black)1.2%

Color previews

#ce2ffc text on a black background

contrast 5.44:1

Card sample

#ce2ffc text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce2ffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2ffc in the Color Lab