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