#f2fc49
a balanced, electric yellow · cool · closest name: yellow
RGB
242, 252, 73
HSL
63°, 97%, 64%
CMYK
4, 0, 71, 1
Luminance
0.8898
Every format
| HEX | #f2fc49 |
| RGB | rgb(242, 252, 73) |
| HSL | hsl(63, 97%, 64%) |
| CMYK | cmyk(4%, 0%, 71%, 1%) |
| LAB | lab(95.6 -23.8 79.3) |
| LCH | lch(95.6 82.8 106.7) |
| OKLCH | oklch(0.954 0.190 112.7) |
Copy-ready code
/* CSS */
color: #f2fc49;
background-color: #f2fc49;
/* Tailwind (arbitrary) */
class="text-[#f2fc49] bg-[#f2fc49]"
/* SCSS */
$brand: #f2fc49;
/* SwiftUI */
Color(red: 0.949, green: 0.988, blue: 0.286)
/* Android */
Color.parseColor("#f2fc49")Accessibility — WCAG contrast
Aa
#f2fc49 on white: 1.12:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2fc49 on black: 18.80:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green98.8%
Blue28.6%
CMYK percentages
Cyan4.0%
Magenta0.0%
Yellow71.0%
Key (black)1.2%
Color previews
#f2fc49 text on a black background
contrast 18.80:1
Card sample
#f2fc49 text on a white background
contrast 1.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2fc49;
Background color
Panel with #f2fc49 background
background-color: #f2fc49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2fc49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 252, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 252, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2fc49; background: linear-gradient(135deg, #f2fc49, #7AFC49);