#fdf174
a light, electric yellow · cool · closest name: khaki
RGB
253, 241, 116
HSL
55°, 97%, 72%
CMYK
0, 5, 54, 1
Luminance
0.8505
Every format
| HEX | #fdf174 |
| RGB | rgb(253, 241, 116) |
| HSL | hsl(55, 97%, 72%) |
| CMYK | cmyk(0%, 5%, 54%, 1%) |
| LAB | lab(93.9 -11.5 60.9) |
| LCH | lch(93.9 61.9 100.7) |
| OKLCH | oklch(0.944 0.146 103.8) |
Copy-ready code
/* CSS */
color: #fdf174;
background-color: #fdf174;
/* Tailwind (arbitrary) */
class="text-[#fdf174] bg-[#fdf174]"
/* SCSS */
$brand: #fdf174;
/* SwiftUI */
Color(red: 0.992, green: 0.945, blue: 0.455)
/* Android */
Color.parseColor("#fdf174")Accessibility — WCAG contrast
Aa
#fdf174 on white: 1.17:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fdf174 on black: 18.01:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.2%
Green94.5%
Blue45.5%
CMYK percentages
Cyan0.0%
Magenta4.7%
Yellow54.2%
Key (black)0.8%
Color previews
#fdf174 text on a black background
contrast 18.01:1
Card sample
#fdf174 text on a white background
contrast 1.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fdf174;
Background color
Panel with #fdf174 background
background-color: #fdf174;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fdf174;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(253, 241, 116, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 241, 116, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf174; background: linear-gradient(135deg, #fdf174, #AEFD74);