Skip to content

#c45ef1

a light, electric violet · warm · closest name: violet

RGB
196, 94, 241
HSL
282°, 84%, 66%
CMYK
19, 61, 0, 6
Luminance
0.2609

Every format

HEX#c45ef1
RGBrgb(196, 94, 241)
HSLhsl(282, 84%, 66%)
CMYKcmyk(19%, 61%, 0%, 6%)
LABlab(58.1 63.3 -57.1)
LCHlch(58.1 85.2 317.9)
OKLCHoklch(0.666 0.223 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45ef1 on white: 3.38:1
AA ✗ fail · AA-large · AAA
Aa
#c45ef1 on black: 6.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green36.9%
Blue94.5%

CMYK percentages

Cyan18.7%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#c45ef1 text on a black background

contrast 6.22:1

Card sample

#c45ef1 text on a white background

contrast 3.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 94, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 94, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c45ef1;
background: linear-gradient(135deg, #c45ef1, #F15EBC);

Monochromatic scale

Palettes built from #c45ef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45ef1 in the Color Lab