#ccb511
a dark, electric yellow · cool · closest name: gold
RGB
204, 181, 17
HSL
53°, 85%, 43%
CMYK
0, 11, 92, 20
Luminance
0.4593
Every format
| HEX | #ccb511 |
| RGB | rgb(204, 181, 17) |
| HSL | hsl(53, 85%, 43%) |
| CMYK | cmyk(0%, 11%, 92%, 20%) |
| LAB | lab(73.5 -6.4 73.4) |
| LCH | lch(73.5 73.7 95.0) |
| OKLCH | oklch(0.769 0.157 99.9) |
Copy-ready code
/* CSS */
color: #ccb511;
background-color: #ccb511;
/* Tailwind (arbitrary) */
class="text-[#ccb511] bg-[#ccb511]"
/* SCSS */
$brand: #ccb511;
/* SwiftUI */
Color(red: 0.800, green: 0.710, blue: 0.067)
/* Android */
Color.parseColor("#ccb511")Accessibility — WCAG contrast
Aa
#ccb511 on white: 2.06:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccb511 on black: 10.19:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green71.0%
Blue6.7%
CMYK percentages
Cyan0.0%
Magenta11.3%
Yellow91.7%
Key (black)20.0%
Color previews
#ccb511 text on a black background
contrast 10.19:1
Card sample
#ccb511 text on a white background
contrast 2.06:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccb511;
Background color
Panel with #ccb511 background
background-color: #ccb511;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccb511;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 181, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 181, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccb511; background: linear-gradient(135deg, #ccb511, #66CC11);