Skip to content

#cd0cff

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

RGB
205, 12, 255
HSL
288°, 100%, 52%
CMYK
20, 95, 0, 0
Luminance
0.2046

Every format

HEX#cd0cff
RGBrgb(205, 12, 255)
HSLhsl(288, 100%, 52%)
CMYKcmyk(20%, 95%, 0%, 0%)
LABlab(52.4 90.3 -74.1)
LCHlch(52.4 116.8 320.6)
OKLCHoklch(0.631 0.304 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd0cff on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#cd0cff on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green4.7%
Blue100.0%

CMYK percentages

Cyan19.6%
Magenta95.3%
Yellow0.0%
Key (black)0.0%

Color previews

#cd0cff text on a black background

contrast 5.09:1

Card sample

#cd0cff text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd0cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd0cff in the Color Lab