#cd18ff
a balanced, electric violet · warm · closest name: magenta
RGB
205, 24, 255
HSL
287°, 100%, 55%
CMYK
20, 91, 0, 0
Luminance
0.2085
Every format
| HEX | #cd18ff |
| RGB | rgb(205, 24, 255) |
| HSL | hsl(287, 100%, 55%) |
| CMYK | cmyk(20%, 91%, 0%, 0%) |
| LAB | lab(52.8 89.0 -73.4) |
| LCH | lch(52.8 115.3 320.5) |
| OKLCH | oklch(0.634 0.301 316.4) |
Copy-ready code
/* CSS */
color: #cd18ff;
background-color: #cd18ff;
/* Tailwind (arbitrary) */
class="text-[#cd18ff] bg-[#cd18ff]"
/* SCSS */
$brand: #cd18ff;
/* SwiftUI */
Color(red: 0.804, green: 0.094, blue: 1.000)
/* Android */
Color.parseColor("#cd18ff")Accessibility — WCAG contrast
Aa
#cd18ff on white: 4.06:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cd18ff on black: 5.17:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green9.4%
Blue100.0%
CMYK percentages
Cyan19.6%
Magenta90.6%
Yellow0.0%
Key (black)0.0%
Color previews
#cd18ff text on a black background
contrast 5.17:1
Card sample
#cd18ff text on a white background
contrast 4.06:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cd18ff;
Background color
Panel with #cd18ff background
background-color: #cd18ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cd18ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 24, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 24, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd18ff; background: linear-gradient(135deg, #cd18ff, #FF1897);