Skip to content

#cf16ff

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

RGB
207, 22, 255
HSL
288°, 100%, 54%
CMYK
19, 91, 0, 0
Luminance
0.2106

Every format

HEX#cf16ff
RGBrgb(207, 22, 255)
HSLhsl(288, 100%, 54%)
CMYKcmyk(19%, 91%, 0%, 0%)
LABlab(53.0 89.5 -73.0)
LCHlch(53.0 115.5 320.8)
OKLCHoklch(0.636 0.302 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf16ff on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#cf16ff on black: 5.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green8.6%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta91.4%
Yellow0.0%
Key (black)0.0%

Color previews

#cf16ff text on a black background

contrast 5.21:1

Card sample

#cf16ff text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf16ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf16ff in the Color Lab