Skip to content

#cd2ffa

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

RGB
205, 47, 250
HSL
287°, 95%, 58%
CMYK
18, 81, 0, 2
Luminance
0.2191

Every format

HEX#cd2ffa
RGBrgb(205, 47, 250)
HSLhsl(287, 95%, 58%)
CMYKcmyk(18%, 81%, 0%, 2%)
LABlab(53.9 83.7 -68.7)
LCHlch(53.9 108.3 320.6)
OKLCHoklch(0.641 0.284 317.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2ffa on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#cd2ffa on black: 5.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue98.0%

CMYK percentages

Cyan18.0%
Magenta81.2%
Yellow0.0%
Key (black)2.0%

Color previews

#cd2ffa text on a black background

contrast 5.38:1

Card sample

#cd2ffa text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2ffa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2ffa in the Color Lab