#cd40ff
a balanced, electric violet · warm · closest name: magenta
RGB
205, 64, 255
HSL
284°, 100%, 63%
CMYK
20, 75, 0, 0
Luminance
0.2387
Every format
| HEX | #cd40ff |
| RGB | rgb(205, 64, 255) |
| HSL | hsl(284, 100%, 63%) |
| CMYK | cmyk(20%, 75%, 0%, 0%) |
| LAB | lab(56.0 79.7 -68.3) |
| LCH | lch(56.0 104.9 319.4) |
| OKLCH | oklch(0.656 0.274 315.3) |
Copy-ready code
/* CSS */
color: #cd40ff;
background-color: #cd40ff;
/* Tailwind (arbitrary) */
class="text-[#cd40ff] bg-[#cd40ff]"
/* SCSS */
$brand: #cd40ff;
/* SwiftUI */
Color(red: 0.804, green: 0.251, blue: 1.000)
/* Android */
Color.parseColor("#cd40ff")Accessibility — WCAG contrast
Aa
#cd40ff on white: 3.64:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cd40ff on black: 5.77:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green25.1%
Blue100.0%
CMYK percentages
Cyan19.6%
Magenta74.9%
Yellow0.0%
Key (black)0.0%
Color previews
#cd40ff text on a black background
contrast 5.77:1
Card sample
#cd40ff text on a white background
contrast 3.64:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cd40ff;
Background color
Panel with #cd40ff background
background-color: #cd40ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cd40ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 64, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 64, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd40ff; background: linear-gradient(135deg, #cd40ff, #FF40B2);