Skip to content

#cd5dfd

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

RGB
205, 93, 253
HSL
282°, 98%, 68%
CMYK
19, 63, 0, 1
Luminance
0.2790

Every format

HEX#cd5dfd
RGBrgb(205, 93, 253)
HSLhsl(282, 98%, 68%)
CMYKcmyk(19%, 63%, 0%, 1%)
LABlab(59.8 68.2 -61.0)
LCHlch(59.8 91.5 318.2)
OKLCHoklch(0.683 0.239 314.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd5dfd on white: 3.19:1
AA ✗ fail · AA-large · AAA
Aa
#cd5dfd on black: 6.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green36.5%
Blue99.2%

CMYK percentages

Cyan19.0%
Magenta63.2%
Yellow0.0%
Key (black)0.8%

Color previews

#cd5dfd text on a black background

contrast 6.58:1

Card sample

#cd5dfd text on a white background

contrast 3.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd5dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd5dfd in the Color Lab