Skip to content

#ce02fc

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

RGB
206, 2, 252
HSL
289°, 98%, 50%
CMYK
18, 99, 0, 1
Luminance
0.2019

Every format

HEX#ce02fc
RGBrgb(206, 2, 252)
HSLhsl(289, 98%, 50%)
CMYKcmyk(18%, 99%, 0%, 1%)
LABlab(52.1 90.6 -72.9)
LCHlch(52.1 116.3 321.2)
OKLCHoklch(0.628 0.305 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce02fc on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#ce02fc on black: 5.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green0.8%
Blue98.8%

CMYK percentages

Cyan18.3%
Magenta99.2%
Yellow0.0%
Key (black)1.2%

Color previews

#ce02fc text on a black background

contrast 5.04:1

Card sample

#ce02fc text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce02fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce02fc in the Color Lab