Skip to content

#ce0cff

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

RGB
206, 12, 255
HSL
288°, 100%, 52%
CMYK
19, 95, 0, 0
Luminance
0.2060

Every format

HEX#ce0cff
RGBrgb(206, 12, 255)
HSLhsl(288, 100%, 52%)
CMYKcmyk(19%, 95%, 0%, 0%)
LABlab(52.5 90.4 -73.8)
LCHlch(52.5 116.7 320.8)
OKLCHoklch(0.632 0.305 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce0cff on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#ce0cff on black: 5.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green4.7%
Blue100.0%

CMYK percentages

Cyan19.2%
Magenta95.3%
Yellow0.0%
Key (black)0.0%

Color previews

#ce0cff text on a black background

contrast 5.12:1

Card sample

#ce0cff text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce0cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce0cff in the Color Lab