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