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