Skip to content

#cf45ff

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

RGB
207, 69, 255
HSL
285°, 100%, 64%
CMYK
19, 73, 0, 0
Luminance
0.2474

Every format

HEX#cf45ff
RGBrgb(207, 69, 255)
HSLhsl(285, 100%, 64%)
CMYKcmyk(19%, 73%, 0%, 0%)
LABlab(56.8 78.4 -66.8)
LCHlch(56.8 103.0 319.5)
OKLCHoklch(0.663 0.270 315.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf45ff on white: 3.53:1
AA ✗ fail · AA-large · AAA
Aa
#cf45ff on black: 5.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green27.1%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta72.9%
Yellow0.0%
Key (black)0.0%

Color previews

#cf45ff text on a black background

contrast 5.95:1

Card sample

#cf45ff text on a white background

contrast 3.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf45ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf45ff in the Color Lab