#f0c950
a balanced, electric yellow · cool · closest name: khaki
RGB
240, 201, 80
HSL
45°, 84%, 63%
CMYK
0, 16, 67, 6
Luminance
0.6088
Every format
| HEX | #f0c950 |
| RGB | rgb(240, 201, 80) |
| HSL | hsl(45, 84%, 63%) |
| CMYK | cmyk(0%, 16%, 67%, 6%) |
| LAB | lab(82.3 1.0 63.4) |
| LCH | lch(82.3 63.4 89.1) |
| OKLCH | oklch(0.848 0.143 91.0) |
Copy-ready code
/* CSS */
color: #f0c950;
background-color: #f0c950;
/* Tailwind (arbitrary) */
class="text-[#f0c950] bg-[#f0c950]"
/* SCSS */
$brand: #f0c950;
/* SwiftUI */
Color(red: 0.941, green: 0.788, blue: 0.314)
/* Android */
Color.parseColor("#f0c950")Accessibility — WCAG contrast
Aa
#f0c950 on white: 1.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0c950 on black: 13.18:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green78.8%
Blue31.4%
CMYK percentages
Cyan0.0%
Magenta16.3%
Yellow66.7%
Key (black)5.9%
Color previews
#f0c950 text on a black background
contrast 13.18:1
Card sample
#f0c950 text on a white background
contrast 1.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0c950;
Background color
Panel with #f0c950 background
background-color: #f0c950;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0c950;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 201, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 201, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0c950; background: linear-gradient(135deg, #f0c950, #ACF050);