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