Skip to content

#cf56ff

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

RGB
207, 86, 255
HSL
283°, 100%, 67%
CMYK
19, 66, 0, 0
Luminance
0.2714

Every format

HEX#cf56ff
RGBrgb(207, 86, 255)
HSLhsl(283, 100%, 67%)
CMYKcmyk(19%, 66%, 0%, 0%)
LABlab(59.1 72.0 -63.2)
LCHlch(59.1 95.8 318.7)
OKLCHoklch(0.679 0.250 314.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green33.7%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta66.3%
Yellow0.0%
Key (black)0.0%

Color previews

#cf56ff text on a black background

contrast 6.43:1

Card sample

#cf56ff text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf56ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf56ff in the Color Lab