#cc4afb
a balanced, electric violet · warm · closest name: magenta
RGB
204, 74, 251
HSL
284°, 96%, 64%
CMYK
19, 71, 0, 2
Luminance
0.2470
Every format
| HEX | #cc4afb |
| RGB | rgb(204, 74, 251) |
| HSL | hsl(284, 96%, 64%) |
| CMYK | cmyk(19%, 71%, 0%, 2%) |
| LAB | lab(56.8 75.3 -64.7) |
| LCH | lch(56.8 99.3 319.3) |
| OKLCH | oklch(0.661 0.260 315.4) |
Copy-ready code
/* CSS */
color: #cc4afb;
background-color: #cc4afb;
/* Tailwind (arbitrary) */
class="text-[#cc4afb] bg-[#cc4afb]"
/* SCSS */
$brand: #cc4afb;
/* SwiftUI */
Color(red: 0.800, green: 0.290, blue: 0.984)
/* Android */
Color.parseColor("#cc4afb")Accessibility — WCAG contrast
Aa
#cc4afb on white: 3.54:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#cc4afb on black: 5.94:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green29.0%
Blue98.4%
CMYK percentages
Cyan18.7%
Magenta70.5%
Yellow0.0%
Key (black)1.6%
Color previews
#cc4afb text on a black background
contrast 5.94:1
Card sample
#cc4afb text on a white background
contrast 3.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cc4afb;
Background color
Panel with #cc4afb background
background-color: #cc4afb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cc4afb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 74, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 74, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc4afb; background: linear-gradient(135deg, #cc4afb, #FB4AB4);