Skip to content

#cf56fe

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

RGB
207, 86, 254
HSL
283°, 99%, 67%
CMYK
19, 66, 0, 0
Luminance
0.2708

Every format

HEX#cf56fe
RGBrgb(207, 86, 254)
HSLhsl(283, 99%, 67%)
CMYKcmyk(19%, 66%, 0%, 0%)
LABlab(59.0 71.8 -62.7)
LCHlch(59.0 95.3 318.8)
OKLCHoklch(0.678 0.249 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf56fe on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#cf56fe on black: 6.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green33.7%
Blue99.6%

CMYK percentages

Cyan18.5%
Magenta66.1%
Yellow0.0%
Key (black)0.4%

Color previews

#cf56fe text on a black background

contrast 6.42:1

Card sample

#cf56fe text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf56fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf56fe in the Color Lab