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