#cccc11
a dark, electric yellow · cool · closest name: gold
RGB
204, 204, 17
HSL
60°, 85%, 43%
CMYK
0, 0, 92, 20
Luminance
0.5606
Every format
| HEX | #cccc11 |
| RGB | rgb(204, 204, 17) |
| HSL | hsl(60, 85%, 43%) |
| CMYK | cmyk(0%, 0%, 92%, 20%) |
| LAB | lab(79.7 -18.0 78.1) |
| LCH | lch(79.7 80.2 103.0) |
| OKLCH | oklch(0.818 0.176 109.7) |
Copy-ready code
/* CSS */
color: #cccc11;
background-color: #cccc11;
/* Tailwind (arbitrary) */
class="text-[#cccc11] bg-[#cccc11]"
/* SCSS */
$brand: #cccc11;
/* SwiftUI */
Color(red: 0.800, green: 0.800, blue: 0.067)
/* Android */
Color.parseColor("#cccc11")Accessibility — WCAG contrast
Aa
#cccc11 on white: 1.72:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cccc11 on black: 12.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green80.0%
Blue6.7%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow91.7%
Key (black)20.0%
Color previews
#cccc11 text on a black background
contrast 12.21:1
Card sample
#cccc11 text on a white background
contrast 1.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cccc11;
Background color
Panel with #cccc11 background
background-color: #cccc11;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cccc11;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 204, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 204, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccc11; background: linear-gradient(135deg, #cccc11, #4FCC11);