#ffc40e
a balanced, electric yellow · cool · closest name: gold
RGB
255, 196, 14
HSL
45°, 100%, 53%
CMYK
0, 23, 95, 0
Luminance
0.6077
Every format
| HEX | #ffc40e |
| RGB | rgb(255, 196, 14) |
| HSL | hsl(45, 100%, 53%) |
| CMYK | cmyk(0%, 23%, 95%, 0%) |
| LAB | lab(82.3 7.9 82.5) |
| LCH | lch(82.3 82.9 84.5) |
| OKLCH | oklch(0.850 0.172 86.3) |
Copy-ready code
/* CSS */
color: #ffc40e;
background-color: #ffc40e;
/* Tailwind (arbitrary) */
class="text-[#ffc40e] bg-[#ffc40e]"
/* SCSS */
$brand: #ffc40e;
/* SwiftUI */
Color(red: 1.000, green: 0.769, blue: 0.055)
/* Android */
Color.parseColor("#ffc40e")Accessibility — WCAG contrast
Aa
#ffc40e on white: 1.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffc40e on black: 13.15:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green76.9%
Blue5.5%
CMYK percentages
Cyan0.0%
Magenta23.1%
Yellow94.5%
Key (black)0.0%
Color previews
#ffc40e text on a black background
contrast 13.15:1
Card sample
#ffc40e text on a white background
contrast 1.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffc40e;
Background color
Panel with #ffc40e background
background-color: #ffc40e;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffc40e;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 196, 14, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 196, 14, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffc40e; background: linear-gradient(135deg, #ffc40e, #99FF0E);