#f0fec4
a pale, electric green · cool · closest name: beige
RGB
240, 254, 196
HSL
75°, 97%, 88%
CMYK
6, 0, 23, 0
Luminance
0.9339
Every format
| HEX | #f0fec4 |
| RGB | rgb(240, 254, 196) |
| HSL | hsl(75, 97%, 88%) |
| CMYK | cmyk(6%, 0%, 23%, 0%) |
| LAB | lab(97.4 -14.0 26.3) |
| LCH | lch(97.4 29.8 118.1) |
| OKLCH | oklch(0.973 0.076 118.9) |
Copy-ready code
/* CSS */
color: #f0fec4;
background-color: #f0fec4;
/* Tailwind (arbitrary) */
class="text-[#f0fec4] bg-[#f0fec4]"
/* SCSS */
$brand: #f0fec4;
/* SwiftUI */
Color(red: 0.941, green: 0.996, blue: 0.769)
/* Android */
Color.parseColor("#f0fec4")Accessibility — WCAG contrast
Aa
#f0fec4 on white: 1.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0fec4 on black: 19.68:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green99.6%
Blue76.9%
CMYK percentages
Cyan5.5%
Magenta0.0%
Yellow22.8%
Key (black)0.4%
Color previews
#f0fec4 text on a black background
contrast 19.68:1
Card sample
#f0fec4 text on a white background
contrast 1.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0fec4;
Background color
Panel with #f0fec4 background
background-color: #f0fec4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0fec4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 254, 196, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 254, 196, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0fec4; background: linear-gradient(135deg, #f0fec4, #C9FEC4);