#f00dcf
a balanced, electric magenta / pink · warm · closest name: magenta
RGB
240, 13, 207
HSL
309°, 90%, 50%
CMYK
0, 95, 14, 6
Luminance
0.2332
Every format
| HEX | #f00dcf |
| RGB | rgb(240, 13, 207) |
| HSL | hsl(309, 90%, 50%) |
| CMYK | cmyk(0%, 95%, 14%, 6%) |
| LAB | lab(55.4 88.6 -41.8) |
| LCH | lch(55.4 97.9 334.7) |
| OKLCH | oklch(0.654 0.285 336.4) |
Copy-ready code
/* CSS */
color: #f00dcf;
background-color: #f00dcf;
/* Tailwind (arbitrary) */
class="text-[#f00dcf] bg-[#f00dcf]"
/* SCSS */
$brand: #f00dcf;
/* SwiftUI */
Color(red: 0.941, green: 0.051, blue: 0.812)
/* Android */
Color.parseColor("#f00dcf")Accessibility — WCAG contrast
Aa
#f00dcf on white: 3.71:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#f00dcf on black: 5.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green5.1%
Blue81.2%
CMYK percentages
Cyan0.0%
Magenta94.6%
Yellow13.7%
Key (black)5.9%
Color previews
#f00dcf text on a black background
contrast 5.66:1
Card sample
#f00dcf text on a white background
contrast 3.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f00dcf;
Background color
Panel with #f00dcf background
background-color: #f00dcf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f00dcf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 13, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 13, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f00dcf; background: linear-gradient(135deg, #f00dcf, #F00D38);