Skip to content

#c648ff

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

RGB
198, 72, 255
HSL
281°, 100%, 64%
CMYK
22, 72, 0, 0
Luminance
0.2386

Every format

HEX#c648ff
RGBrgb(198, 72, 255)
HSLhsl(281, 100%, 64%)
CMYKcmyk(22%, 72%, 0%, 0%)
LABlab(56.0 75.6 -68.3)
LCHlch(56.0 101.9 317.9)
OKLCHoklch(0.654 0.263 312.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c648ff on white: 3.64:1
AA ✗ fail · AA-large · AAA
Aa
#c648ff on black: 5.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.6%
Green28.2%
Blue100.0%

CMYK percentages

Cyan22.4%
Magenta71.8%
Yellow0.0%
Key (black)0.0%

Color previews

#c648ff text on a black background

contrast 5.77:1

Card sample

#c648ff text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c648ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c648ff in the Color Lab