#ccb40c
a dark, electric yellow · cool · closest name: gold
RGB
204, 180, 12
HSL
53°, 89%, 42%
CMYK
0, 12, 94, 20
Luminance
0.4551
Every format
| HEX | #ccb40c |
| RGB | rgb(204, 180, 12) |
| HSL | hsl(53, 89%, 42%) |
| CMYK | cmyk(0%, 12%, 94%, 20%) |
| LAB | lab(73.2 -5.9 73.9) |
| LCH | lch(73.2 74.1 94.6) |
| OKLCH | oklch(0.767 0.157 99.5) |
Copy-ready code
/* CSS */
color: #ccb40c;
background-color: #ccb40c;
/* Tailwind (arbitrary) */
class="text-[#ccb40c] bg-[#ccb40c]"
/* SCSS */
$brand: #ccb40c;
/* SwiftUI */
Color(red: 0.800, green: 0.706, blue: 0.047)
/* Android */
Color.parseColor("#ccb40c")Accessibility — WCAG contrast
Aa
#ccb40c on white: 2.08:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccb40c on black: 10.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green70.6%
Blue4.7%
CMYK percentages
Cyan0.0%
Magenta11.8%
Yellow94.1%
Key (black)20.0%
Color previews
#ccb40c text on a black background
contrast 10.10:1
Card sample
#ccb40c text on a white background
contrast 2.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccb40c;
Background color
Panel with #ccb40c background
background-color: #ccb40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccb40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 180, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 180, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccb40c; background: linear-gradient(135deg, #ccb40c, #64CC0C);