Skip to content

#cf22f2

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

RGB
207, 34, 242
HSL
290°, 89%, 54%
CMYK
15, 86, 0, 5
Luminance
0.2082

Every format

HEX#cf22f2
RGBrgb(207, 34, 242)
HSLhsl(290, 89%, 54%)
CMYKcmyk(15%, 86%, 0%, 5%)
LABlab(52.8 85.5 -66.2)
LCHlch(52.8 108.1 322.3)
OKLCHoklch(0.631 0.287 319.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf22f2 on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#cf22f2 on black: 5.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green13.3%
Blue94.9%

CMYK percentages

Cyan14.5%
Magenta86.0%
Yellow0.0%
Key (black)5.1%

Color previews

#cf22f2 text on a black background

contrast 5.16:1

Card sample

#cf22f2 text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf22f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf22f2 in the Color Lab