#f0dfba
a light, vivid yellow · warm · closest name: beige
RGB
240, 223, 186
HSL
41°, 64%, 84%
CMYK
0, 7, 23, 6
Luminance
0.7485
Every format
| HEX | #f0dfba |
| RGB | rgb(240, 223, 186) |
| HSL | hsl(41, 64%, 84%) |
| CMYK | cmyk(0%, 7%, 23%, 6%) |
| LAB | lab(89.3 0.1 20.3) |
| LCH | lch(89.3 20.3 89.7) |
| OKLCH | oklch(0.908 0.052 86.2) |
Copy-ready code
/* CSS */
color: #f0dfba;
background-color: #f0dfba;
/* Tailwind (arbitrary) */
class="text-[#f0dfba] bg-[#f0dfba]"
/* SCSS */
$brand: #f0dfba;
/* SwiftUI */
Color(red: 0.941, green: 0.875, blue: 0.729)
/* Android */
Color.parseColor("#f0dfba")Accessibility — WCAG contrast
Aa
#f0dfba on white: 1.32:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0dfba on black: 15.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green87.5%
Blue72.9%
CMYK percentages
Cyan0.0%
Magenta7.1%
Yellow22.5%
Key (black)5.9%
Color previews
#f0dfba text on a black background
contrast 15.97:1
Card sample
#f0dfba text on a white background
contrast 1.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0dfba;
Background color
Panel with #f0dfba background
background-color: #f0dfba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0dfba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 223, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 223, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0dfba; background: linear-gradient(135deg, #f0dfba, #DDF0BA);