Skip to content

#c17df2

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

RGB
193, 125, 242
HSL
275°, 82%, 72%
CMYK
20, 48, 0, 5
Luminance
0.3242

Every format

HEX#c17df2
RGBrgb(193, 125, 242)
HSLhsl(275, 82%, 72%)
CMYKcmyk(20%, 48%, 0%, 5%)
LABlab(63.7 47.2 -48.8)
LCHlch(63.7 67.9 314.1)
OKLCHoklch(0.707 0.176 309.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c17df2 on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#c17df2 on black: 7.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.7%
Green49.0%
Blue94.9%

CMYK percentages

Cyan20.2%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#c17df2 text on a black background

contrast 7.48:1

Card sample

#c17df2 text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c17df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c17df2 in the Color Lab