Skip to content

#c45af0

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

RGB
196, 90, 240
HSL
282°, 83%, 65%
CMYK
18, 63, 0, 6
Luminance
0.2534

Every format

HEX#c45af0
RGBrgb(196, 90, 240)
HSLhsl(282, 83%, 65%)
CMYKcmyk(18%, 63%, 0%, 6%)
LABlab(57.4 64.9 -57.7)
LCHlch(57.4 86.8 318.4)
OKLCHoklch(0.661 0.227 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45af0 on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#c45af0 on black: 6.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green35.3%
Blue94.1%

CMYK percentages

Cyan18.3%
Magenta62.5%
Yellow0.0%
Key (black)5.9%

Color previews

#c45af0 text on a black background

contrast 6.07:1

Card sample

#c45af0 text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c45af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45af0 in the Color Lab