Skip to content

#c645eb

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

RGB
198, 69, 235
HSL
287°, 81%, 60%
CMYK
16, 71, 0, 8
Luminance
0.2226

Every format

HEX#c645eb
RGBrgb(198, 69, 235)
HSLhsl(287, 81%, 60%)
CMYKcmyk(16%, 71%, 0%, 8%)
LABlab(54.3 72.9 -59.8)
LCHlch(54.3 94.3 320.6)
OKLCHoklch(0.638 0.249 317.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c645eb on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#c645eb on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.6%
Green27.1%
Blue92.2%

CMYK percentages

Cyan15.7%
Magenta70.6%
Yellow0.0%
Key (black)7.8%

Color previews

#c645eb text on a black background

contrast 5.45:1

Card sample

#c645eb text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c645eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c645eb in the Color Lab