#f2f24b
a balanced, electric yellow · cool · closest name: yellow
RGB
242, 242, 75
HSL
60°, 87%, 62%
CMYK
0, 0, 69, 5
Luminance
0.8289
Every format
| HEX | #f2f24b |
| RGB | rgb(242, 242, 75) |
| HSL | hsl(60, 87%, 62%) |
| CMYK | cmyk(0%, 0%, 69%, 5%) |
| LAB | lab(93.0 -18.9 76.1) |
| LCH | lch(93.0 78.5 104.0) |
| OKLCH | oklch(0.933 0.179 109.4) |
Copy-ready code
/* CSS */
color: #f2f24b;
background-color: #f2f24b;
/* Tailwind (arbitrary) */
class="text-[#f2f24b] bg-[#f2f24b]"
/* SCSS */
$brand: #f2f24b;
/* SwiftUI */
Color(red: 0.949, green: 0.949, blue: 0.294)
/* Android */
Color.parseColor("#f2f24b")Accessibility — WCAG contrast
Aa
#f2f24b on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2f24b on black: 17.58:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green94.9%
Blue29.4%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow69.0%
Key (black)5.1%
Color previews
#f2f24b text on a black background
contrast 17.58:1
Card sample
#f2f24b text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2f24b;
Background color
Panel with #f2f24b background
background-color: #f2f24b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2f24b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 242, 75, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 242, 75, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2f24b; background: linear-gradient(135deg, #f2f24b, #83F24B);