Skip to content

#cf2cfd

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

RGB
207, 44, 253
HSL
287°, 98%, 58%
CMYK
18, 83, 0, 1
Luminance
0.2216

Every format

HEX#cf2cfd
RGBrgb(207, 44, 253)
HSLhsl(287, 98%, 58%)
CMYKcmyk(18%, 83%, 0%, 1%)
LABlab(54.2 85.3 -70.0)
LCHlch(54.2 110.3 320.6)
OKLCHoklch(0.644 0.289 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green17.3%
Blue99.2%

CMYK percentages

Cyan18.2%
Magenta82.6%
Yellow0.0%
Key (black)0.8%

Color previews

#cf2cfd text on a black background

contrast 5.43:1

Card sample

#cf2cfd text on a white background

contrast 3.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2cfd in the Color Lab