Skip to content

#cd4dfd

a balanced, electric violet · warm · closest name: magenta

RGB
205, 77, 253
HSL
284°, 98%, 65%
CMYK
19, 70, 0, 1
Luminance
0.2538

Every format

HEX#cd4dfd
RGBrgb(205, 77, 253)
HSLhsl(284, 98%, 65%)
CMYKcmyk(19%, 70%, 0%, 1%)
LABlab(57.4 74.7 -64.8)
LCHlch(57.4 98.9 319.1)
OKLCHoklch(0.666 0.259 315.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd4dfd on white: 3.46:1
AA ✗ fail · AA-large · AAA
Aa
#cd4dfd on black: 6.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green30.2%
Blue99.2%

CMYK percentages

Cyan19.0%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#cd4dfd text on a black background

contrast 6.08:1

Card sample

#cd4dfd text on a white background

contrast 3.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd4dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd4dfd in the Color Lab