Skip to content

#cf4cfd

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

RGB
207, 76, 253
HSL
284°, 98%, 65%
CMYK
18, 70, 0, 1
Luminance
0.2553

Every format

HEX#cf4cfd
RGBrgb(207, 76, 253)
HSLhsl(284, 98%, 65%)
CMYKcmyk(18%, 70%, 0%, 1%)
LABlab(57.6 75.5 -64.5)
LCHlch(57.6 99.3 319.5)
OKLCHoklch(0.668 0.260 315.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf4cfd on white: 3.44:1
AA ✗ fail · AA-large · AAA
Aa
#cf4cfd on black: 6.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green29.8%
Blue99.2%

CMYK percentages

Cyan18.2%
Magenta70.0%
Yellow0.0%
Key (black)0.8%

Color previews

#cf4cfd text on a black background

contrast 6.11:1

Card sample

#cf4cfd text on a white background

contrast 3.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf4cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf4cfd in the Color Lab