Skip to content

#c64af0

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

RGB
198, 74, 240
HSL
285°, 85%, 62%
CMYK
18, 69, 0, 6
Luminance
0.2319

Every format

HEX#c64af0
RGBrgb(198, 74, 240)
HSLhsl(285, 85%, 62%)
CMYKcmyk(18%, 69%, 0%, 6%)
LABlab(55.3 72.0 -61.1)
LCHlch(55.3 94.4 319.7)
OKLCHoklch(0.646 0.248 316.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c64af0 on white: 3.72:1
AA ✗ fail · AA-large · AAA
Aa
#c64af0 on black: 5.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red77.6%
Green29.0%
Blue94.1%

CMYK percentages

Cyan17.5%
Magenta69.2%
Yellow0.0%
Key (black)5.9%

Color previews

#c64af0 text on a black background

contrast 5.64:1

Card sample

#c64af0 text on a white background

contrast 3.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c64af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c64af0 in the Color Lab