#cccc21
a balanced, vivid yellow · cool · closest name: gold
RGB
204, 204, 33
HSL
60°, 72%, 47%
CMYK
0, 0, 84, 20
Luminance
0.5613
Every format
| HEX | #cccc21 |
| RGB | rgb(204, 204, 33) |
| HSL | hsl(60, 72%, 47%) |
| CMYK | cmyk(0%, 0%, 84%, 20%) |
| LAB | lab(79.7 -17.7 75.3) |
| LCH | lch(79.7 77.4 103.2) |
| OKLCH | oklch(0.819 0.172 109.7) |
Copy-ready code
/* CSS */
color: #cccc21;
background-color: #cccc21;
/* Tailwind (arbitrary) */
class="text-[#cccc21] bg-[#cccc21]"
/* SCSS */
$brand: #cccc21;
/* SwiftUI */
Color(red: 0.800, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#cccc21")Accessibility — WCAG contrast
Aa
#cccc21 on white: 1.72:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cccc21 on black: 12.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green80.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow83.8%
Key (black)20.0%
Color previews
#cccc21 text on a black background
contrast 12.23:1
Card sample
#cccc21 text on a white background
contrast 1.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cccc21;
Background color
Panel with #cccc21 background
background-color: #cccc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cccc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccc21; background: linear-gradient(135deg, #cccc21, #5ACC21);