Skip to content

#ce02ff

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

RGB
206, 2, 255
HSL
288°, 100%, 50%
CMYK
19, 99, 0, 0
Luminance
0.2039

Every format

HEX#ce02ff
RGBrgb(206, 2, 255)
HSLhsl(288, 100%, 50%)
CMYKcmyk(19%, 99%, 0%, 0%)
LABlab(52.3 91.1 -74.2)
LCHlch(52.3 117.5 320.8)
OKLCHoklch(0.630 0.307 316.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce02ff on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#ce02ff on black: 5.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green0.8%
Blue100.0%

CMYK percentages

Cyan19.2%
Magenta99.2%
Yellow0.0%
Key (black)0.0%

Color previews

#ce02ff text on a black background

contrast 5.08:1

Card sample

#ce02ff text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce02ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce02ff in the Color Lab