#ffcc2f
a balanced, electric yellow · cool · closest name: gold
RGB
255, 204, 47
HSL
45°, 100%, 59%
CMYK
0, 20, 82, 0
Luminance
0.6465
Every format
| HEX | #ffcc2f |
| RGB | rgb(255, 204, 47) |
| HSL | hsl(45, 100%, 59%) |
| CMYK | cmyk(0%, 20%, 82%, 0%) |
| LAB | lab(84.3 4.4 77.5) |
| LCH | lch(84.3 77.6 86.8) |
| OKLCH | oklch(0.866 0.166 88.9) |
Copy-ready code
/* CSS */
color: #ffcc2f;
background-color: #ffcc2f;
/* Tailwind (arbitrary) */
class="text-[#ffcc2f] bg-[#ffcc2f]"
/* SCSS */
$brand: #ffcc2f;
/* SwiftUI */
Color(red: 1.000, green: 0.800, blue: 0.184)
/* Android */
Color.parseColor("#ffcc2f")Accessibility — WCAG contrast
Aa
#ffcc2f on white: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffcc2f on black: 13.93:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green80.0%
Blue18.4%
CMYK percentages
Cyan0.0%
Magenta20.0%
Yellow81.6%
Key (black)0.0%
Color previews
#ffcc2f text on a black background
contrast 13.93:1
Card sample
#ffcc2f text on a white background
contrast 1.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffcc2f;
Background color
Panel with #ffcc2f background
background-color: #ffcc2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffcc2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 204, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 204, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffcc2f; background: linear-gradient(135deg, #ffcc2f, #A7FF2F);