Skip to content

#c45def

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

RGB
196, 93, 239
HSL
282°, 82%, 65%
CMYK
18, 61, 0, 6
Luminance
0.2580

Every format

HEX#c45def
RGBrgb(196, 93, 239)
HSLhsl(282, 82%, 65%)
CMYKcmyk(18%, 61%, 0%, 6%)
LABlab(57.8 63.3 -56.4)
LCHlch(57.8 84.8 318.3)
OKLCHoklch(0.664 0.222 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45def on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#c45def on black: 6.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green36.5%
Blue93.7%

CMYK percentages

Cyan18.0%
Magenta61.1%
Yellow0.0%
Key (black)6.3%

Color previews

#c45def text on a black background

contrast 6.16:1

Card sample

#c45def text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c45def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45def in the Color Lab