#fdf402
a balanced, electric yellow · cool · closest name: yellow
RGB
253, 244, 2
HSL
58°, 98%, 50%
CMYK
0, 4, 99, 1
Luminance
0.8559
Every format
| HEX | #fdf402 |
| RGB | rgb(253, 244, 2) |
| HSL | hsl(58, 98%, 50%) |
| CMYK | cmyk(0%, 4%, 99%, 1%) |
| LAB | lab(94.1 -17.1 92.1) |
| LCH | lch(94.1 93.6 100.5) |
| OKLCH | oklch(0.944 0.202 107.0) |
Copy-ready code
/* CSS */
color: #fdf402;
background-color: #fdf402;
/* Tailwind (arbitrary) */
class="text-[#fdf402] bg-[#fdf402]"
/* SCSS */
$brand: #fdf402;
/* SwiftUI */
Color(red: 0.992, green: 0.957, blue: 0.008)
/* Android */
Color.parseColor("#fdf402")Accessibility — WCAG contrast
Aa
#fdf402 on white: 1.16:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fdf402 on black: 18.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.2%
Green95.7%
Blue0.8%
CMYK percentages
Cyan0.0%
Magenta3.6%
Yellow99.2%
Key (black)0.8%
Color previews
#fdf402 text on a black background
contrast 18.12:1
Card sample
#fdf402 text on a white background
contrast 1.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fdf402;
Background color
Panel with #fdf402 background
background-color: #fdf402;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fdf402;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(253, 244, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 244, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf402; background: linear-gradient(135deg, #fdf402, #5FFD02);