#ccb211
a dark, electric yellow · cool · closest name: gold
RGB
204, 178, 17
HSL
52°, 85%, 43%
CMYK
0, 13, 92, 20
Luminance
0.4472
Every format
| HEX | #ccb211 |
| RGB | rgb(204, 178, 17) |
| HSL | hsl(52, 85%, 43%) |
| CMYK | cmyk(0%, 13%, 92%, 20%) |
| LAB | lab(72.7 -4.8 72.8) |
| LCH | lch(72.7 73.0 93.8) |
| OKLCH | oklch(0.763 0.155 98.4) |
Copy-ready code
/* CSS */
color: #ccb211;
background-color: #ccb211;
/* Tailwind (arbitrary) */
class="text-[#ccb211] bg-[#ccb211]"
/* SCSS */
$brand: #ccb211;
/* SwiftUI */
Color(red: 0.800, green: 0.698, blue: 0.067)
/* Android */
Color.parseColor("#ccb211")Accessibility — WCAG contrast
Aa
#ccb211 on white: 2.11:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccb211 on black: 9.94:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green69.8%
Blue6.7%
CMYK percentages
Cyan0.0%
Magenta12.7%
Yellow91.7%
Key (black)20.0%
Color previews
#ccb211 text on a black background
contrast 9.94:1
Card sample
#ccb211 text on a white background
contrast 2.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccb211;
Background color
Panel with #ccb211 background
background-color: #ccb211;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccb211;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 178, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 178, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccb211; background: linear-gradient(135deg, #ccb211, #69CC11);