Skip to content

#cf20ff

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

RGB
207, 32, 255
HSL
287°, 100%, 56%
CMYK
19, 88, 0, 0
Luminance
0.2152

Every format

HEX#cf20ff
RGBrgb(207, 32, 255)
HSLhsl(287, 100%, 56%)
CMYKcmyk(19%, 88%, 0%, 0%)
LABlab(53.5 88.0 -72.2)
LCHlch(53.5 113.8 320.6)
OKLCHoklch(0.639 0.298 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf20ff on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#cf20ff on black: 5.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green12.5%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta87.5%
Yellow0.0%
Key (black)0.0%

Color previews

#cf20ff text on a black background

contrast 5.30:1

Card sample

#cf20ff text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf20ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf20ff in the Color Lab