#f9cf21
a balanced, electric yellow · cool · closest name: gold
RGB
249, 207, 33
HSL
48°, 95%, 55%
CMYK
0, 17, 87, 2
Luminance
0.6488
Every format
| HEX | #f9cf21 |
| RGB | rgb(249, 207, 33) |
| HSL | hsl(48, 95%, 55%) |
| CMYK | cmyk(0%, 17%, 87%, 2%) |
| LAB | lab(84.4 -0.0 80.8) |
| LCH | lch(84.4 80.8 90.0) |
| OKLCH | oklch(0.866 0.172 93.4) |
Copy-ready code
/* CSS */
color: #f9cf21;
background-color: #f9cf21;
/* Tailwind (arbitrary) */
class="text-[#f9cf21] bg-[#f9cf21]"
/* SCSS */
$brand: #f9cf21;
/* SwiftUI */
Color(red: 0.976, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#f9cf21")Accessibility — WCAG contrast
Aa
#f9cf21 on white: 1.50:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f9cf21 on black: 13.98:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red97.6%
Green81.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta16.9%
Yellow86.7%
Key (black)2.4%
Color previews
#f9cf21 text on a black background
contrast 13.98:1
Card sample
#f9cf21 text on a white background
contrast 1.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f9cf21;
Background color
Panel with #f9cf21 background
background-color: #f9cf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f9cf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(249, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(249, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f9cf21; background: linear-gradient(135deg, #f9cf21, #93F921);