Skip to content

#cf02fd

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

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

Every format

HEX#cf02fd
RGBrgb(207, 2, 253)
HSLhsl(289, 98%, 50%)
CMYKcmyk(18%, 99%, 0%, 1%)
LABlab(52.3 90.9 -73.1)
LCHlch(52.3 116.6 321.2)
OKLCHoklch(0.630 0.306 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green0.8%
Blue99.2%

CMYK percentages

Cyan18.2%
Magenta99.2%
Yellow0.0%
Key (black)0.8%

Color previews

#cf02fd text on a black background

contrast 5.08:1

Card sample

#cf02fd text on a white background

contrast 4.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf02fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf02fd in the Color Lab