#f0c577
a light, electric orange · warm · closest name: khaki
RGB
240, 197, 119
HSL
39°, 80%, 70%
CMYK
0, 18, 50, 6
Luminance
0.5979
Every format
| HEX | #f0c577 |
| RGB | rgb(240, 197, 119) |
| HSL | hsl(39, 80%, 70%) |
| CMYK | cmyk(0%, 18%, 50%, 6%) |
| LAB | lab(81.7 5.8 44.6) |
| LCH | lch(81.7 45.0 82.5) |
| OKLCH | oklch(0.845 0.108 81.3) |
Copy-ready code
/* CSS */
color: #f0c577;
background-color: #f0c577;
/* Tailwind (arbitrary) */
class="text-[#f0c577] bg-[#f0c577]"
/* SCSS */
$brand: #f0c577;
/* SwiftUI */
Color(red: 0.941, green: 0.773, blue: 0.467)
/* Android */
Color.parseColor("#f0c577")Accessibility — WCAG contrast
Aa
#f0c577 on white: 1.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0c577 on black: 12.96:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green77.3%
Blue46.7%
CMYK percentages
Cyan0.0%
Magenta17.9%
Yellow50.4%
Key (black)5.9%
Color previews
#f0c577 text on a black background
contrast 12.96:1
Card sample
#f0c577 text on a white background
contrast 1.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0c577;
Background color
Panel with #f0c577 background
background-color: #f0c577;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0c577;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 197, 119, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 197, 119, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0c577; background: linear-gradient(135deg, #f0c577, #CAF077);