Skip to content

#ce2afd

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

RGB
206, 42, 253
HSL
287°, 98%, 58%
CMYK
19, 83, 0, 1
Luminance
0.2187

Every format

HEX#ce2afd
RGBrgb(206, 42, 253)
HSLhsl(287, 98%, 58%)
CMYKcmyk(19%, 83%, 0%, 1%)
LABlab(53.9 85.6 -70.5)
LCHlch(53.9 110.8 320.5)
OKLCHoklch(0.641 0.290 316.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce2afd on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#ce2afd on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green16.5%
Blue99.2%

CMYK percentages

Cyan18.6%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#ce2afd text on a black background

contrast 5.37:1

Card sample

#ce2afd text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce2afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce2afd in the Color Lab