Skip to content

#cd4fec

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

RGB
205, 79, 236
HSL
288°, 81%, 62%
CMYK
13, 67, 0, 8
Luminance
0.2463

Every format

HEX#cd4fec
RGBrgb(205, 79, 236)
HSLhsl(288, 81%, 62%)
CMYKcmyk(13%, 67%, 0%, 8%)
LABlab(56.7 70.8 -56.5)
LCHlch(56.7 90.5 321.4)
OKLCHoklch(0.658 0.241 319.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd4fec on white: 3.54:1
AA ✗ fail · AA-large · AAA
Aa
#cd4fec on black: 5.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green31.0%
Blue92.5%

CMYK percentages

Cyan13.1%
Magenta66.5%
Yellow0.0%
Key (black)7.5%

Color previews

#cd4fec text on a black background

contrast 5.93:1

Card sample

#cd4fec text on a white background

contrast 3.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd4fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd4fec in the Color Lab