#f04fba
a balanced, electric magenta / pink · warm · closest name: orchid
RGB
240, 79, 186
HSL
320°, 84%, 63%
CMYK
0, 67, 23, 6
Luminance
0.2766
Every format
| HEX | #f04fba |
| RGB | rgb(240, 79, 186) |
| HSL | hsl(320, 84%, 63%) |
| CMYK | cmyk(0%, 67%, 23%, 6%) |
| LAB | lab(59.6 71.3 -23.2) |
| LCH | lch(59.6 74.9 341.9) |
| OKLCH | oklch(0.681 0.223 343.9) |
Copy-ready code
/* CSS */
color: #f04fba;
background-color: #f04fba;
/* Tailwind (arbitrary) */
class="text-[#f04fba] bg-[#f04fba]"
/* SCSS */
$brand: #f04fba;
/* SwiftUI */
Color(red: 0.941, green: 0.310, blue: 0.729)
/* Android */
Color.parseColor("#f04fba")Accessibility — WCAG contrast
Aa
#f04fba on white: 3.21:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#f04fba on black: 6.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green31.0%
Blue72.9%
CMYK percentages
Cyan0.0%
Magenta67.1%
Yellow22.5%
Key (black)5.9%
Color previews
#f04fba text on a black background
contrast 6.53:1
Card sample
#f04fba text on a white background
contrast 3.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f04fba;
Background color
Panel with #f04fba background
background-color: #f04fba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f04fba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 79, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 79, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f04fba; background: linear-gradient(135deg, #f04fba, #F04F4F);