#f2c721
a balanced, electric yellow · cool · closest name: gold
RGB
242, 199, 33
HSL
48°, 89%, 54%
CMYK
0, 18, 86, 5
Luminance
0.5983
Every format
| HEX | #f2c721 |
| RGB | rgb(242, 199, 33) |
| HSL | hsl(48, 89%, 54%) |
| CMYK | cmyk(0%, 18%, 86%, 5%) |
| LAB | lab(81.8 1.1 78.4) |
| LCH | lch(81.8 78.4 89.2) |
| OKLCH | oklch(0.843 0.166 92.3) |
Copy-ready code
/* CSS */
color: #f2c721;
background-color: #f2c721;
/* Tailwind (arbitrary) */
class="text-[#f2c721] bg-[#f2c721]"
/* SCSS */
$brand: #f2c721;
/* SwiftUI */
Color(red: 0.949, green: 0.780, blue: 0.129)
/* Android */
Color.parseColor("#f2c721")Accessibility — WCAG contrast
Aa
#f2c721 on white: 1.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2c721 on black: 12.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green78.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta17.8%
Yellow86.4%
Key (black)5.1%
Color previews
#f2c721 text on a black background
contrast 12.97:1
Card sample
#f2c721 text on a white background
contrast 1.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2c721;
Background color
Panel with #f2c721 background
background-color: #f2c721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2c721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 199, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 199, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2c721; background: linear-gradient(135deg, #f2c721, #91F221);