Skip to content

#cf2dfc

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

RGB
207, 45, 252
HSL
287°, 97%, 58%
CMYK
18, 82, 0, 1
Luminance
0.2217

Every format

HEX#cf2dfc
RGBrgb(207, 45, 252)
HSLhsl(287, 97%, 58%)
CMYKcmyk(18%, 82%, 0%, 1%)
LABlab(54.2 84.9 -69.4)
LCHlch(54.2 109.6 320.7)
OKLCHoklch(0.644 0.288 317.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2dfc on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#cf2dfc on black: 5.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green17.6%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta82.1%
Yellow0.0%
Key (black)1.2%

Color previews

#cf2dfc text on a black background

contrast 5.43:1

Card sample

#cf2dfc text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2dfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2dfc in the Color Lab