#f0fba4
a light, electric yellow · cool · closest name: khaki
RGB
240, 251, 164
HSL
68°, 92%, 81%
CMYK
4, 0, 35, 2
Luminance
0.9020
Every format
| HEX | #f0fba4 |
| RGB | rgb(240, 251, 164) |
| HSL | hsl(68, 92%, 81%) |
| CMYK | cmyk(4%, 0%, 35%, 2%) |
| LAB | lab(96.1 -16.7 40.5) |
| LCH | lch(96.1 43.9 112.4) |
| OKLCH | oklch(0.960 0.110 114.4) |
Copy-ready code
/* CSS */
color: #f0fba4;
background-color: #f0fba4;
/* Tailwind (arbitrary) */
class="text-[#f0fba4] bg-[#f0fba4]"
/* SCSS */
$brand: #f0fba4;
/* SwiftUI */
Color(red: 0.941, green: 0.984, blue: 0.643)
/* Android */
Color.parseColor("#f0fba4")Accessibility — WCAG contrast
Aa
#f0fba4 on white: 1.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0fba4 on black: 19.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green98.4%
Blue64.3%
CMYK percentages
Cyan4.4%
Magenta0.0%
Yellow34.7%
Key (black)1.6%
Color previews
#f0fba4 text on a black background
contrast 19.04:1
Card sample
#f0fba4 text on a white background
contrast 1.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0fba4;
Background color
Panel with #f0fba4 background
background-color: #f0fba4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0fba4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 251, 164, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 251, 164, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0fba4; background: linear-gradient(135deg, #f0fba4, #B6FBA4);