#fcf030
a balanced, electric yellow · cool · closest name: yellow
RGB
252, 240, 48
HSL
57°, 97%, 59%
CMYK
0, 5, 81, 1
Luminance
0.8323
Every format
| HEX | #fcf030 |
| RGB | rgb(252, 240, 48) |
| HSL | hsl(57, 97%, 59%) |
| CMYK | cmyk(0%, 5%, 81%, 1%) |
| LAB | lab(93.1 -14.9 84.7) |
| LCH | lch(93.1 86.0 100.0) |
| OKLCH | oklch(0.936 0.189 105.6) |
Copy-ready code
/* CSS */
color: #fcf030;
background-color: #fcf030;
/* Tailwind (arbitrary) */
class="text-[#fcf030] bg-[#fcf030]"
/* SCSS */
$brand: #fcf030;
/* SwiftUI */
Color(red: 0.988, green: 0.941, blue: 0.188)
/* Android */
Color.parseColor("#fcf030")Accessibility — WCAG contrast
Aa
#fcf030 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fcf030 on black: 17.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.8%
Green94.1%
Blue18.8%
CMYK percentages
Cyan0.0%
Magenta4.8%
Yellow81.0%
Key (black)1.2%
Color previews
#fcf030 text on a black background
contrast 17.65:1
Card sample
#fcf030 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fcf030;
Background color
Panel with #fcf030 background
background-color: #fcf030;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fcf030;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(252, 240, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 240, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcf030; background: linear-gradient(135deg, #fcf030, #80FC30);