#ccc40d
a dark, electric yellow · cool · closest name: gold
RGB
204, 196, 13
HSL
58°, 88%, 43%
CMYK
0, 4, 94, 20
Luminance
0.5235
Every format
| HEX | #ccc40d |
| RGB | rgb(204, 196, 13) |
| HSL | hsl(58, 88%, 43%) |
| CMYK | cmyk(0%, 4%, 94%, 20%) |
| LAB | lab(77.5 -14.1 77.0) |
| LCH | lch(77.5 78.3 100.4) |
| OKLCH | oklch(0.801 0.170 106.7) |
Copy-ready code
/* CSS */
color: #ccc40d;
background-color: #ccc40d;
/* Tailwind (arbitrary) */
class="text-[#ccc40d] bg-[#ccc40d]"
/* SCSS */
$brand: #ccc40d;
/* SwiftUI */
Color(red: 0.800, green: 0.769, blue: 0.051)
/* Android */
Color.parseColor("#ccc40d")Accessibility — WCAG contrast
Aa
#ccc40d on white: 1.83:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccc40d on black: 11.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green76.9%
Blue5.1%
CMYK percentages
Cyan0.0%
Magenta3.9%
Yellow93.6%
Key (black)20.0%
Color previews
#ccc40d text on a black background
contrast 11.47:1
Card sample
#ccc40d text on a white background
contrast 1.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccc40d;
Background color
Panel with #ccc40d background
background-color: #ccc40d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccc40d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 196, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 196, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc40d; background: linear-gradient(135deg, #ccc40d, #55CC0D);