#f0bacf
a light, vivid magenta / pink · warm · closest name: pink
RGB
240, 186, 207
HSL
337°, 64%, 84%
CMYK
0, 23, 14, 6
Luminance
0.5815
Every format
| HEX | #f0bacf |
| RGB | rgb(240, 186, 207) |
| HSL | hsl(337, 64%, 84%) |
| CMYK | cmyk(0%, 23%, 14%, 6%) |
| LAB | lab(80.8 22.6 -3.0) |
| LCH | lch(80.8 22.8 352.4) |
| OKLCH | oklch(0.843 0.068 353.4) |
Copy-ready code
/* CSS */
color: #f0bacf;
background-color: #f0bacf;
/* Tailwind (arbitrary) */
class="text-[#f0bacf] bg-[#f0bacf]"
/* SCSS */
$brand: #f0bacf;
/* SwiftUI */
Color(red: 0.941, green: 0.729, blue: 0.812)
/* Android */
Color.parseColor("#f0bacf")Accessibility — WCAG contrast
Aa
#f0bacf on white: 1.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0bacf on black: 12.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green72.9%
Blue81.2%
CMYK percentages
Cyan0.0%
Magenta22.5%
Yellow13.7%
Key (black)5.9%
Color previews
#f0bacf text on a black background
contrast 12.63:1
Card sample
#f0bacf text on a white background
contrast 1.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0bacf;
Background color
Panel with #f0bacf background
background-color: #f0bacf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0bacf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 186, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 186, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0bacf; background: linear-gradient(135deg, #f0bacf, #F0C9BA);