#ccb300
a dark, electric yellow · cool · closest name: gold
RGB
204, 179, 0
HSL
53°, 100%, 40%
CMYK
0, 12, 100, 20
Luminance
0.4508
Every format
| HEX | #ccb300 |
| RGB | rgb(204, 179, 0) |
| HSL | hsl(53, 100%, 40%) |
| CMYK | cmyk(0%, 12%, 100%, 20%) |
| LAB | lab(72.9 -5.5 75.0) |
| LCH | lch(72.9 75.2 94.2) |
| OKLCH | oklch(0.765 0.159 99.1) |
Copy-ready code
/* CSS */
color: #ccb300;
background-color: #ccb300;
/* Tailwind (arbitrary) */
class="text-[#ccb300] bg-[#ccb300]"
/* SCSS */
$brand: #ccb300;
/* SwiftUI */
Color(red: 0.800, green: 0.702, blue: 0.000)
/* Android */
Color.parseColor("#ccb300")Accessibility — WCAG contrast
Aa
#ccb300 on white: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccb300 on black: 10.02:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green70.2%
Blue0.0%
CMYK percentages
Cyan0.0%
Magenta12.3%
Yellow100.0%
Key (black)20.0%
Color previews
#ccb300 text on a black background
contrast 10.02:1
Card sample
#ccb300 text on a white background
contrast 2.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccb300;
Background color
Panel with #ccb300 background
background-color: #ccb300;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccb300;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 179, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 179, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccb300; background: linear-gradient(135deg, #ccb300, #5DCC00);