#f0c175
a light, electric orange · warm · closest name: khaki
RGB
240, 193, 117
HSL
37°, 80%, 70%
CMYK
0, 20, 51, 6
Luminance
0.5795
Every format
| HEX | #f0c175 |
| RGB | rgb(240, 193, 117) |
| HSL | hsl(37, 80%, 70%) |
| CMYK | cmyk(0%, 20%, 51%, 6%) |
| LAB | lab(80.7 7.8 44.4) |
| LCH | lch(80.7 45.0 80.1) |
| OKLCH | oklch(0.837 0.108 78.5) |
Copy-ready code
/* CSS */
color: #f0c175;
background-color: #f0c175;
/* Tailwind (arbitrary) */
class="text-[#f0c175] bg-[#f0c175]"
/* SCSS */
$brand: #f0c175;
/* SwiftUI */
Color(red: 0.941, green: 0.757, blue: 0.459)
/* Android */
Color.parseColor("#f0c175")Accessibility — WCAG contrast
Aa
#f0c175 on white: 1.67:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0c175 on black: 12.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green75.7%
Blue45.9%
CMYK percentages
Cyan0.0%
Magenta19.6%
Yellow51.3%
Key (black)5.9%
Color previews
#f0c175 text on a black background
contrast 12.59:1
Card sample
#f0c175 text on a white background
contrast 1.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0c175;
Background color
Panel with #f0c175 background
background-color: #f0c175;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0c175;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 193, 117, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 193, 117, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0c175; background: linear-gradient(135deg, #f0c175, #CDF075);