#cccd0c
a dark, electric yellow · cool · closest name: gold
RGB
204, 205, 12
HSL
60°, 89%, 43%
CMYK
1, 0, 94, 20
Luminance
0.5653
Every format
| HEX | #cccd0c |
| RGB | rgb(204, 205, 12) |
| HSL | hsl(60, 89%, 43%) |
| CMYK | cmyk(1%, 0%, 94%, 20%) |
| LAB | lab(79.9 -18.6 78.9) |
| LCH | lch(79.9 81.1 103.3) |
| OKLCH | oklch(0.821 0.178 110.1) |
Copy-ready code
/* CSS */
color: #cccd0c;
background-color: #cccd0c;
/* Tailwind (arbitrary) */
class="text-[#cccd0c] bg-[#cccd0c]"
/* SCSS */
$brand: #cccd0c;
/* SwiftUI */
Color(red: 0.800, green: 0.804, blue: 0.047)
/* Android */
Color.parseColor("#cccd0c")Accessibility — WCAG contrast
Aa
#cccd0c on white: 1.71:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cccd0c on black: 12.31:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green80.4%
Blue4.7%
CMYK percentages
Cyan0.5%
Magenta0.0%
Yellow94.1%
Key (black)19.6%
Color previews
#cccd0c text on a black background
contrast 12.31:1
Card sample
#cccd0c text on a white background
contrast 1.71:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cccd0c;
Background color
Panel with #cccd0c background
background-color: #cccd0c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cccd0c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 205, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 205, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccd0c; background: linear-gradient(135deg, #cccd0c, #4BCD0C);