Skip to content

#cf2cfa

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

RGB
207, 44, 250
HSL
288°, 95%, 58%
CMYK
17, 82, 0, 2
Luminance
0.2197

Every format

HEX#cf2cfa
RGBrgb(207, 44, 250)
HSLhsl(288, 95%, 58%)
CMYKcmyk(17%, 82%, 0%, 2%)
LABlab(54.0 84.8 -68.6)
LCHlch(54.0 109.1 321.0)
OKLCHoklch(0.642 0.287 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green17.3%
Blue98.0%

CMYK percentages

Cyan17.2%
Magenta82.4%
Yellow0.0%
Key (black)2.0%

Color previews

#cf2cfa text on a black background

contrast 5.39:1

Card sample

#cf2cfa text on a white background

contrast 3.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf2cfa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf2cfa in the Color Lab