#f2fbab
a light, electric yellow · cool · closest name: khaki
RGB
242, 251, 171
HSL
67°, 91%, 83%
CMYK
4, 0, 32, 2
Luminance
0.9081
Every format
| HEX | #f2fbab |
| RGB | rgb(242, 251, 171) |
| HSL | hsl(67, 91%, 83%) |
| CMYK | cmyk(4%, 0%, 32%, 2%) |
| LAB | lab(96.3 -15.2 37.4) |
| LCH | lch(96.3 40.4 112.0) |
| OKLCH | oklch(0.963 0.101 113.5) |
Copy-ready code
/* CSS */
color: #f2fbab;
background-color: #f2fbab;
/* Tailwind (arbitrary) */
class="text-[#f2fbab] bg-[#f2fbab]"
/* SCSS */
$brand: #f2fbab;
/* SwiftUI */
Color(red: 0.949, green: 0.984, blue: 0.671)
/* Android */
Color.parseColor("#f2fbab")Accessibility — WCAG contrast
Aa
#f2fbab on white: 1.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2fbab on black: 19.16:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green98.4%
Blue67.1%
CMYK percentages
Cyan3.6%
Magenta0.0%
Yellow31.9%
Key (black)1.6%
Color previews
#f2fbab text on a black background
contrast 19.16:1
Card sample
#f2fbab text on a white background
contrast 1.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2fbab;
Background color
Panel with #f2fbab background
background-color: #f2fbab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2fbab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 251, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 251, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2fbab; background: linear-gradient(135deg, #f2fbab, #BDFBAB);