Skip to content

#cf7df6

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

RGB
207, 125, 246
HSL
281°, 87%, 73%
CMYK
16, 49, 0, 4
Luminance
0.3459

Every format

HEX#cf7df6
RGBrgb(207, 125, 246)
HSLhsl(281, 87%, 73%)
CMYKcmyk(16%, 49%, 0%, 4%)
LABlab(65.4 51.8 -48.2)
LCHlch(65.4 70.8 317.1)
OKLCHoklch(0.724 0.186 313.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf7df6 on white: 2.65:1
AA ✗ fail · AA-large · AAA
Aa
#cf7df6 on black: 7.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green49.0%
Blue96.5%

CMYK percentages

Cyan15.9%
Magenta49.2%
Yellow0.0%
Key (black)3.5%

Color previews

#cf7df6 text on a black background

contrast 7.92:1

Card sample

#cf7df6 text on a white background

contrast 2.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf7df6

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf7df6 in the Color Lab