Skip to content

#cf2bfc

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

RGB
207, 43, 252
HSL
287°, 97%, 58%
CMYK
18, 83, 0, 1
Luminance
0.2202

Every format

HEX#cf2bfc
RGBrgb(207, 43, 252)
HSLhsl(287, 97%, 58%)
CMYKcmyk(18%, 83%, 0%, 1%)
LABlab(54.0 85.3 -69.7)
LCHlch(54.0 110.2 320.8)
OKLCHoklch(0.642 0.289 317.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf2bfc on white: 3.89:1
AA ✗ fail · AA-large · AAA
Aa
#cf2bfc on black: 5.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green16.9%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta82.9%
Yellow0.0%
Key (black)1.2%

Color previews

#cf2bfc text on a black background

contrast 5.40:1

Card sample

#cf2bfc text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2bfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2bfc in the Color Lab