Skip to content

#c45dfd

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

RGB
196, 93, 253
HSL
279°, 98%, 68%
CMYK
23, 63, 0, 1
Luminance
0.2666

Every format

HEX#c45dfd
RGBrgb(196, 93, 253)
HSLhsl(279, 98%, 68%)
CMYKcmyk(23%, 63%, 0%, 1%)
LABlab(58.7 66.2 -62.9)
LCHlch(58.7 91.3 316.5)
OKLCHoklch(0.672 0.236 311.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45dfd on white: 3.32:1
AA ✗ fail · AA-large · AAA
Aa
#c45dfd on black: 6.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green36.5%
Blue99.2%

CMYK percentages

Cyan22.5%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#c45dfd text on a black background

contrast 6.33:1

Card sample

#c45dfd text on a white background

contrast 3.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c45dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45dfd in the Color Lab