Skip to content

#cf7fec

a light, vivid violet · warm · closest name: violet

RGB
207, 127, 236
HSL
284°, 74%, 71%
CMYK
12, 46, 0, 8
Luminance
0.3450

Every format

HEX#cf7fec
RGBrgb(207, 127, 236)
HSLhsl(284, 74%, 71%)
CMYKcmyk(12%, 46%, 0%, 8%)
LABlab(65.4 48.8 -42.8)
LCHlch(65.4 64.8 318.8)
OKLCHoklch(0.721 0.172 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf7fec on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#cf7fec on black: 7.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green49.8%
Blue92.5%

CMYK percentages

Cyan12.3%
Magenta46.2%
Yellow0.0%
Key (black)7.5%

Color previews

#cf7fec text on a black background

contrast 7.90:1

Card sample

#cf7fec text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf7fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf7fec in the Color Lab