#fdf015
a balanced, electric yellow · cool · closest name: yellow
RGB
253, 240, 21
HSL
57°, 98%, 54%
CMYK
0, 5, 92, 1
Luminance
0.8326
Every format
| HEX | #fdf015 |
| RGB | rgb(253, 240, 21) |
| HSL | hsl(57, 98%, 54%) |
| CMYK | cmyk(0%, 5%, 92%, 1%) |
| LAB | lab(93.1 -15.0 89.7) |
| LCH | lch(93.1 90.9 99.5) |
| OKLCH | oklch(0.936 0.197 105.6) |
Copy-ready code
/* CSS */
color: #fdf015;
background-color: #fdf015;
/* Tailwind (arbitrary) */
class="text-[#fdf015] bg-[#fdf015]"
/* SCSS */
$brand: #fdf015;
/* SwiftUI */
Color(red: 0.992, green: 0.941, blue: 0.082)
/* Android */
Color.parseColor("#fdf015")Accessibility — WCAG contrast
Aa
#fdf015 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fdf015 on black: 17.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.2%
Green94.1%
Blue8.2%
CMYK percentages
Cyan0.0%
Magenta5.1%
Yellow91.7%
Key (black)0.8%
Color previews
#fdf015 text on a black background
contrast 17.65:1
Card sample
#fdf015 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fdf015;
Background color
Panel with #fdf015 background
background-color: #fdf015;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fdf015;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(253, 240, 21, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 240, 21, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf015; background: linear-gradient(135deg, #fdf015, #6FFD15);