#fdf128
a balanced, electric yellow · cool · closest name: yellow
RGB
253, 241, 40
HSL
57°, 98%, 58%
CMYK
0, 5, 84, 1
Luminance
0.8395
Every format
| HEX | #fdf128 |
| RGB | rgb(253, 241, 40) |
| HSL | hsl(57, 98%, 58%) |
| CMYK | cmyk(0%, 5%, 84%, 1%) |
| LAB | lab(93.4 -15.1 86.8) |
| LCH | lch(93.4 88.1 99.9) |
| OKLCH | oklch(0.938 0.193 105.7) |
Copy-ready code
/* CSS */
color: #fdf128;
background-color: #fdf128;
/* Tailwind (arbitrary) */
class="text-[#fdf128] bg-[#fdf128]"
/* SCSS */
$brand: #fdf128;
/* SwiftUI */
Color(red: 0.992, green: 0.945, blue: 0.157)
/* Android */
Color.parseColor("#fdf128")Accessibility — WCAG contrast
Aa
#fdf128 on white: 1.18:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fdf128 on black: 17.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.2%
Green94.5%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta4.7%
Yellow84.2%
Key (black)0.8%
Color previews
#fdf128 text on a black background
contrast 17.79:1
Card sample
#fdf128 text on a white background
contrast 1.18:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fdf128;
Background color
Panel with #fdf128 background
background-color: #fdf128;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fdf128;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(253, 241, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 241, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf128; background: linear-gradient(135deg, #fdf128, #7BFD28);