Skip to content

#ce2afe

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

RGB
206, 42, 254
HSL
286°, 99%, 58%
CMYK
19, 84, 0, 0
Luminance
0.2193

Every format

HEX#ce2afe
RGBrgb(206, 42, 254)
HSLhsl(286, 99%, 58%)
CMYKcmyk(19%, 84%, 0%, 0%)
LABlab(54.0 85.7 -70.9)
LCHlch(54.0 111.3 320.4)
OKLCHoklch(0.642 0.291 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce2afe on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#ce2afe on black: 5.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green16.5%
Blue99.6%

CMYK percentages

Cyan18.9%
Magenta83.5%
Yellow0.0%
Key (black)0.4%

Color previews

#ce2afe text on a black background

contrast 5.39:1

Card sample

#ce2afe text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce2afe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2afe in the Color Lab