Skip to content

#c64afb

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

RGB
198, 74, 251
HSL
282°, 96%, 64%
CMYK
21, 71, 0, 2
Luminance
0.2387

Every format

HEX#c64afb
RGBrgb(198, 74, 251)
HSLhsl(282, 96%, 64%)
CMYKcmyk(21%, 71%, 0%, 2%)
LABlab(56.0 74.1 -66.1)
LCHlch(56.0 99.3 318.3)
OKLCHoklch(0.653 0.258 313.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red77.6%
Green29.0%
Blue98.4%

CMYK percentages

Cyan21.1%
Magenta70.5%
Yellow0.0%
Key (black)1.6%

Color previews

#c64afb text on a black background

contrast 5.77:1

Card sample

#c64afb text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c64afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c64afb in the Color Lab