Skip to content

#c45df7

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

RGB
196, 93, 247
HSL
280°, 91%, 67%
CMYK
21, 62, 0, 3
Luminance
0.2628

Every format

HEX#c45df7
RGBrgb(196, 93, 247)
HSLhsl(280, 91%, 67%)
CMYKcmyk(21%, 62%, 0%, 3%)
LABlab(58.3 64.9 -60.1)
LCHlch(58.3 88.5 317.2)
OKLCHoklch(0.669 0.230 312.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45df7 on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#c45df7 on black: 6.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green36.5%
Blue96.9%

CMYK percentages

Cyan20.6%
Magenta62.3%
Yellow0.0%
Key (black)3.1%

Color previews

#c45df7 text on a black background

contrast 6.26:1

Card sample

#c45df7 text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c45df7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45df7 in the Color Lab