Skip to content

#c18dfd

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

RGB
193, 141, 253
HSL
268°, 97%, 77%
CMYK
24, 44, 0, 1
Luminance
0.3748

Every format

HEX#c18dfd
RGBrgb(193, 141, 253)
HSLhsl(268, 97%, 77%)
CMYKcmyk(24%, 44%, 0%, 1%)
LABlab(67.6 41.1 -48.6)
LCHlch(67.6 63.6 310.2)
OKLCHoklch(0.738 0.164 304.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c18dfd on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#c18dfd on black: 8.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.7%
Green55.3%
Blue99.2%

CMYK percentages

Cyan23.7%
Magenta44.3%
Yellow0.0%
Key (black)0.8%

Color previews

#c18dfd text on a black background

contrast 8.50:1

Card sample

#c18dfd text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c18dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c18dfd in the Color Lab