#fdf040
a balanced, electric yellow · cool · closest name: gold
RGB
253, 240, 64
HSL
56°, 98%, 62%
CMYK
0, 5, 75, 1
Luminance
0.8357
Every format
| HEX | #fdf040 |
| RGB | rgb(253, 240, 64) |
| HSL | hsl(56, 98%, 62%) |
| CMYK | cmyk(0%, 5%, 75%, 1%) |
| LAB | lab(93.3 -13.9 80.4) |
| LCH | lch(93.3 81.6 99.8) |
| OKLCH | oklch(0.937 0.182 105.0) |
Copy-ready code
/* CSS */
color: #fdf040;
background-color: #fdf040;
/* Tailwind (arbitrary) */
class="text-[#fdf040] bg-[#fdf040]"
/* SCSS */
$brand: #fdf040;
/* SwiftUI */
Color(red: 0.992, green: 0.941, blue: 0.251)
/* Android */
Color.parseColor("#fdf040")Accessibility — WCAG contrast
Aa
#fdf040 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fdf040 on black: 17.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.2%
Green94.1%
Blue25.1%
CMYK percentages
Cyan0.0%
Magenta5.1%
Yellow74.7%
Key (black)0.8%
Color previews
#fdf040 text on a black background
contrast 17.71:1
Card sample
#fdf040 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fdf040;
Background color
Panel with #fdf040 background
background-color: #fdf040;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fdf040;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(253, 240, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 240, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf040; background: linear-gradient(135deg, #fdf040, #8CFD40);