Skip to content

#cd0dff

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

RGB
205, 13, 255
HSL
288°, 100%, 53%
CMYK
20, 95, 0, 0
Luminance
0.2049

Every format

HEX#cd0dff
RGBrgb(205, 13, 255)
HSLhsl(288, 100%, 53%)
CMYKcmyk(20%, 95%, 0%, 0%)
LABlab(52.4 90.2 -74.0)
LCHlch(52.4 116.7 320.6)
OKLCHoklch(0.631 0.304 316.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green5.1%
Blue100.0%

CMYK percentages

Cyan19.6%
Magenta94.9%
Yellow0.0%
Key (black)0.0%

Color previews

#cd0dff text on a black background

contrast 5.10:1

Card sample

#cd0dff text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd0dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cd0dff in the Color Lab