#cd2def
a balanced, electric violet · warm · closest name: magenta
RGB
205, 45, 239
HSL
290°, 86%, 56%
CMYK
14, 81, 0, 6
Luminance
0.2109
Every format
| HEX | #cd2def |
| RGB | rgb(205, 45, 239) |
| HSL | hsl(290, 86%, 56%) |
| CMYK | cmyk(14%, 81%, 0%, 6%) |
| LAB | lab(53.0 82.3 -64.0) |
| LCH | lch(53.0 104.3 322.1) |
| OKLCH | oklch(0.632 0.277 319.5) |
Copy-ready code
/* CSS */
color: #cd2def;
background-color: #cd2def;
/* Tailwind (arbitrary) */
class="text-[#cd2def] bg-[#cd2def]"
/* SCSS */
$brand: #cd2def;
/* SwiftUI */
Color(red: 0.804, green: 0.176, blue: 0.937)
/* Android */
Color.parseColor("#cd2def")Accessibility — WCAG contrast
Aa
#cd2def on white: 4.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cd2def on black: 5.22:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green17.6%
Blue93.7%
CMYK percentages
Cyan14.2%
Magenta81.2%
Yellow0.0%
Key (black)6.3%
Color previews
#cd2def text on a black background
contrast 5.22:1
Card sample
#cd2def text on a white background
contrast 4.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cd2def;
Background color
Panel with #cd2def background
background-color: #cd2def;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cd2def;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 45, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 45, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd2def; background: linear-gradient(135deg, #cd2def, #EF2D90);