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