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