Skip to content

#cd2fff

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

RGB
205, 47, 255
HSL
286°, 100%, 59%
CMYK
20, 82, 0, 0
Luminance
0.2223

Every format

HEX#cd2fff
RGBrgb(205, 47, 255)
HSLhsl(286, 100%, 59%)
CMYKcmyk(20%, 82%, 0%, 0%)
LABlab(54.3 84.6 -71.0)
LCHlch(54.3 110.4 320.0)
OKLCHoklch(0.644 0.288 315.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd2fff on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#cd2fff on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green18.4%
Blue100.0%

CMYK percentages

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

Color previews

#cd2fff text on a black background

contrast 5.45:1

Card sample

#cd2fff text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd2fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd2fff in the Color Lab