Skip to content

#cf2dff

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

RGB
207, 45, 255
HSL
286°, 100%, 59%
CMYK
19, 82, 0, 0
Luminance
0.2236

Every format

HEX#cf2dff
RGBrgb(207, 45, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(19%, 82%, 0%, 0%)
LABlab(54.4 85.4 -70.8)
LCHlch(54.4 110.9 320.4)
OKLCHoklch(0.646 0.290 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2dff on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#cf2dff on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green17.6%
Blue100.0%

CMYK percentages

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

Color previews

#cf2dff text on a black background

contrast 5.47:1

Card sample

#cf2dff text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2dff in the Color Lab