#f2f474
a light, electric yellow · cool · closest name: khaki
RGB
242, 244, 116
HSL
61°, 85%, 71%
CMYK
1, 0, 53, 4
Luminance
0.8484
Every format
| HEX | #f2f474 |
| RGB | rgb(242, 244, 116) |
| HSL | hsl(61, 85%, 71%) |
| CMYK | cmyk(1%, 0%, 53%, 4%) |
| LAB | lab(93.8 -17.3 60.5) |
| LCH | lch(93.8 62.9 105.9) |
| OKLCH | oklch(0.941 0.150 109.8) |
Copy-ready code
/* CSS */
color: #f2f474;
background-color: #f2f474;
/* Tailwind (arbitrary) */
class="text-[#f2f474] bg-[#f2f474]"
/* SCSS */
$brand: #f2f474;
/* SwiftUI */
Color(red: 0.949, green: 0.957, blue: 0.455)
/* Android */
Color.parseColor("#f2f474")Accessibility — WCAG contrast
Aa
#f2f474 on white: 1.17:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2f474 on black: 17.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green95.7%
Blue45.5%
CMYK percentages
Cyan0.8%
Magenta0.0%
Yellow52.5%
Key (black)4.3%
Color previews
#f2f474 text on a black background
contrast 17.97:1
Card sample
#f2f474 text on a white background
contrast 1.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2f474;
Background color
Panel with #f2f474 background
background-color: #f2f474;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2f474;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 244, 116, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 244, 116, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f474; background: linear-gradient(135deg, #f2f474, #9DF474);