Skip to content

#c45afb

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

RGB
196, 90, 251
HSL
280°, 95%, 67%
CMYK
22, 64, 0, 2
Luminance
0.2601

Every format

HEX#c45afb
RGBrgb(196, 90, 251)
HSLhsl(280, 95%, 67%)
CMYKcmyk(22%, 64%, 0%, 2%)
LABlab(58.0 67.1 -62.7)
LCHlch(58.0 91.9 316.9)
OKLCHoklch(0.667 0.238 312.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c45afb on white: 3.39:1
AA ✗ fail · AA-large · AAA
Aa
#c45afb on black: 6.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.9%
Green35.3%
Blue98.4%

CMYK percentages

Cyan21.9%
Magenta64.1%
Yellow0.0%
Key (black)1.6%

Color previews

#c45afb text on a black background

contrast 6.20:1

Card sample

#c45afb text on a white background

contrast 3.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c45afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c45afb in the Color Lab