#f0f9b2
a light, electric yellow · cool · closest name: khaki
RGB
240, 249, 178
HSL
68°, 86%, 84%
CMYK
4, 0, 29, 2
Luminance
0.8949
Every format
| HEX | #f0f9b2 |
| RGB | rgb(240, 249, 178) |
| HSL | hsl(68, 86%, 84%) |
| CMYK | cmyk(4%, 0%, 29%, 2%) |
| LAB | lab(95.8 -14.0 33.2) |
| LCH | lch(95.8 36.0 112.9) |
| OKLCH | oklch(0.959 0.091 114.0) |
Copy-ready code
/* CSS */
color: #f0f9b2;
background-color: #f0f9b2;
/* Tailwind (arbitrary) */
class="text-[#f0f9b2] bg-[#f0f9b2]"
/* SCSS */
$brand: #f0f9b2;
/* SwiftUI */
Color(red: 0.941, green: 0.976, blue: 0.698)
/* Android */
Color.parseColor("#f0f9b2")Accessibility — WCAG contrast
Aa
#f0f9b2 on white: 1.11:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0f9b2 on black: 18.90:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green97.6%
Blue69.8%
CMYK percentages
Cyan3.6%
Magenta0.0%
Yellow28.5%
Key (black)2.4%
Color previews
#f0f9b2 text on a black background
contrast 18.90:1
Card sample
#f0f9b2 text on a white background
contrast 1.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0f9b2;
Background color
Panel with #f0f9b2 background
background-color: #f0f9b2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0f9b2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 249, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 249, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0f9b2; background: linear-gradient(135deg, #f0f9b2, #C1F9B2);