Skip to content

#ce1afd

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

RGB
206, 26, 253
HSL
288°, 98%, 55%
CMYK
19, 90, 0, 1
Luminance
0.2095

Every format

HEX#ce1afd
RGBrgb(206, 26, 253)
HSLhsl(288, 98%, 55%)
CMYKcmyk(19%, 90%, 0%, 1%)
LABlab(52.9 88.5 -72.1)
LCHlch(52.9 114.1 320.8)
OKLCHoklch(0.634 0.299 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce1afd on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#ce1afd on black: 5.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green10.2%
Blue99.2%

CMYK percentages

Cyan18.6%
Magenta89.7%
Yellow0.0%
Key (black)0.8%

Color previews

#ce1afd text on a black background

contrast 5.19:1

Card sample

#ce1afd text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce1afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce1afd in the Color Lab