Skip to content

#cf0cfc

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

RGB
207, 12, 252
HSL
289°, 98%, 52%
CMYK
18, 95, 0, 1
Luminance
0.2056

Every format

HEX#cf0cfc
RGBrgb(207, 12, 252)
HSLhsl(289, 98%, 52%)
CMYKcmyk(18%, 95%, 0%, 1%)
LABlab(52.5 90.0 -72.2)
LCHlch(52.5 115.4 321.3)
OKLCHoklch(0.631 0.303 317.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf0cfc on white: 4.11:1
AA ✗ fail · AA-large · AAA
Aa
#cf0cfc on black: 5.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green4.7%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta95.2%
Yellow0.0%
Key (black)1.2%

Color previews

#cf0cfc text on a black background

contrast 5.11:1

Card sample

#cf0cfc text on a white background

contrast 4.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf0cfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf0cfc in the Color Lab