Skip to content

#c97df0

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

RGB
201, 125, 240
HSL
280°, 79%, 72%
CMYK
16, 48, 0, 6
Luminance
0.3338

Every format

HEX#c97df0
RGBrgb(201, 125, 240)
HSLhsl(280, 79%, 72%)
CMYKcmyk(16%, 48%, 0%, 6%)
LABlab(64.5 49.0 -46.4)
LCHlch(64.5 67.5 316.5)
OKLCHoklch(0.714 0.177 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c97df0 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#c97df0 on black: 7.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.8%
Green49.0%
Blue94.1%

CMYK percentages

Cyan16.3%
Magenta47.9%
Yellow0.0%
Key (black)5.9%

Color previews

#c97df0 text on a black background

contrast 7.68:1

Card sample

#c97df0 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c97df0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c97df0 in the Color Lab