#f0af40
a balanced, electric orange · warm · closest name: orange
RGB
240, 175, 64
HSL
38°, 85%, 60%
CMYK
0, 27, 73, 6
Luminance
0.4956
Every format
| HEX | #f0af40 |
| RGB | rgb(240, 175, 64) |
| HSL | hsl(38, 85%, 60%) |
| CMYK | cmyk(0%, 27%, 73%, 6%) |
| LAB | lab(75.8 13.8 63.3) |
| LCH | lch(75.8 64.8 77.7) |
| OKLCH | oklch(0.796 0.144 76.9) |
Copy-ready code
/* CSS */
color: #f0af40;
background-color: #f0af40;
/* Tailwind (arbitrary) */
class="text-[#f0af40] bg-[#f0af40]"
/* SCSS */
$brand: #f0af40;
/* SwiftUI */
Color(red: 0.941, green: 0.686, blue: 0.251)
/* Android */
Color.parseColor("#f0af40")Accessibility — WCAG contrast
Aa
#f0af40 on white: 1.92:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0af40 on black: 10.91:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green68.6%
Blue25.1%
CMYK percentages
Cyan0.0%
Magenta27.1%
Yellow73.3%
Key (black)5.9%
Color previews
#f0af40 text on a black background
contrast 10.91:1
Card sample
#f0af40 text on a white background
contrast 1.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0af40;
Background color
Panel with #f0af40 background
background-color: #f0af40;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0af40;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 175, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 175, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0af40; background: linear-gradient(135deg, #f0af40, #BCF040);