Skip to content

#cf4dff

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

RGB
207, 77, 255
HSL
284°, 100%, 65%
CMYK
19, 70, 0, 0
Luminance
0.2579

Every format

HEX#cf4dff
RGBrgb(207, 77, 255)
HSLhsl(284, 100%, 65%)
CMYKcmyk(19%, 70%, 0%, 0%)
LABlab(57.8 75.5 -65.2)
LCHlch(57.8 99.8 319.2)
OKLCHoklch(0.670 0.261 315.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf4dff on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#cf4dff on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green30.2%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta69.8%
Yellow0.0%
Key (black)0.0%

Color previews

#cf4dff text on a black background

contrast 6.16:1

Card sample

#cf4dff text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf4dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf4dff in the Color Lab