Skip to content

#cf1dff

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

RGB
207, 29, 255
HSL
287°, 100%, 56%
CMYK
19, 89, 0, 0
Luminance
0.2136

Every format

HEX#cf1dff
RGBrgb(207, 29, 255)
HSLhsl(287, 100%, 56%)
CMYKcmyk(19%, 89%, 0%, 0%)
LABlab(53.4 88.5 -72.5)
LCHlch(53.4 114.4 320.7)
OKLCHoklch(0.638 0.299 316.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf1dff on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#cf1dff on black: 5.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green11.4%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta88.6%
Yellow0.0%
Key (black)0.0%

Color previews

#cf1dff text on a black background

contrast 5.27:1

Card sample

#cf1dff text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf1dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf1dff in the Color Lab