Skip to content

#cd4aff

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

RGB
205, 74, 255
HSL
283°, 100%, 65%
CMYK
20, 71, 0, 0
Luminance
0.2510

Every format

HEX#cd4aff
RGBrgb(205, 74, 255)
HSLhsl(283, 100%, 65%)
CMYKcmyk(20%, 71%, 0%, 0%)
LABlab(57.2 76.2 -66.3)
LCHlch(57.2 101.0 319.0)
OKLCHoklch(0.664 0.264 314.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd4aff on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#cd4aff on black: 6.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green29.0%
Blue100.0%

CMYK percentages

Cyan19.6%
Magenta71.0%
Yellow0.0%
Key (black)0.0%

Color previews

#cd4aff text on a black background

contrast 6.02:1

Card sample

#cd4aff text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd4aff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd4aff in the Color Lab