Skip to content

#cf2cff

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

RGB
207, 44, 255
HSL
286°, 100%, 59%
CMYK
19, 83, 0, 0
Luminance
0.2229

Every format

HEX#cf2cff
RGBrgb(207, 44, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(19%, 83%, 0%, 0%)
LABlab(54.3 85.6 -70.9)
LCHlch(54.3 111.2 320.4)
OKLCHoklch(0.645 0.291 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2cff on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#cf2cff on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green17.3%
Blue100.0%

CMYK percentages

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

Color previews

#cf2cff text on a black background

contrast 5.46:1

Card sample

#cf2cff text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2cff in the Color Lab