Skip to content

#cf02fc

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

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

Every format

HEX#cf02fc
RGBrgb(207, 2, 252)
HSLhsl(289, 98%, 50%)
CMYKcmyk(18%, 99%, 0%, 1%)
LABlab(52.2 90.8 -72.6)
LCHlch(52.2 116.2 321.3)
OKLCHoklch(0.630 0.305 317.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green0.8%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta99.2%
Yellow0.0%
Key (black)1.2%

Color previews

#cf02fc text on a black background

contrast 5.07:1

Card sample

#cf02fc text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf02fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf02fc in the Color Lab