Skip to content

#cf27ff

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

RGB
207, 39, 255
HSL
287°, 100%, 58%
CMYK
19, 85, 0, 0
Luminance
0.2194

Every format

HEX#cf27ff
RGBrgb(207, 39, 255)
HSLhsl(287, 100%, 58%)
CMYKcmyk(19%, 85%, 0%, 0%)
LABlab(54.0 86.7 -71.5)
LCHlch(54.0 112.4 320.5)
OKLCHoklch(0.642 0.294 316.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.2%
Green15.3%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta84.7%
Yellow0.0%
Key (black)0.0%

Color previews

#cf27ff text on a black background

contrast 5.39:1

Card sample

#cf27ff text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf27ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf27ff in the Color Lab