#fccc15
a balanced, electric yellow · cool · closest name: gold
RGB
252, 204, 21
HSL
48°, 98%, 54%
CMYK
0, 19, 92, 1
Luminance
0.6394
Every format
| HEX | #fccc15 |
| RGB | rgb(252, 204, 21) |
| HSL | hsl(48, 98%, 54%) |
| CMYK | cmyk(0%, 19%, 92%, 1%) |
| LAB | lab(83.9 2.6 82.7) |
| LCH | lch(83.9 82.7 88.2) |
| OKLCH | oklch(0.863 0.173 91.2) |
Copy-ready code
/* CSS */
color: #fccc15;
background-color: #fccc15;
/* Tailwind (arbitrary) */
class="text-[#fccc15] bg-[#fccc15]"
/* SCSS */
$brand: #fccc15;
/* SwiftUI */
Color(red: 0.988, green: 0.800, blue: 0.082)
/* Android */
Color.parseColor("#fccc15")Accessibility — WCAG contrast
Aa
#fccc15 on white: 1.52:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fccc15 on black: 13.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.8%
Green80.0%
Blue8.2%
CMYK percentages
Cyan0.0%
Magenta19.0%
Yellow91.7%
Key (black)1.2%
Color previews
#fccc15 text on a black background
contrast 13.79:1
Card sample
#fccc15 text on a white background
contrast 1.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fccc15;
Background color
Panel with #fccc15 background
background-color: #fccc15;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fccc15;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(252, 204, 21, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 204, 21, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fccc15; background: linear-gradient(135deg, #fccc15, #92FC15);