#ccc01b
a balanced, electric yellow · cool · closest name: gold
RGB
204, 192, 27
HSL
56°, 77%, 45%
CMYK
0, 6, 87, 20
Luminance
0.5062
Every format
| HEX | #ccc01b |
| RGB | rgb(204, 192, 27) |
| HSL | hsl(56, 77%, 45%) |
| CMYK | cmyk(0%, 6%, 87%, 20%) |
| LAB | lab(76.5 -11.8 73.9) |
| LCH | lch(76.5 74.9 99.1) |
| OKLCH | oklch(0.793 0.163 104.8) |
Copy-ready code
/* CSS */
color: #ccc01b;
background-color: #ccc01b;
/* Tailwind (arbitrary) */
class="text-[#ccc01b] bg-[#ccc01b]"
/* SCSS */
$brand: #ccc01b;
/* SwiftUI */
Color(red: 0.800, green: 0.753, blue: 0.106)
/* Android */
Color.parseColor("#ccc01b")Accessibility — WCAG contrast
Aa
#ccc01b on white: 1.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccc01b on black: 11.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green75.3%
Blue10.6%
CMYK percentages
Cyan0.0%
Magenta5.9%
Yellow86.8%
Key (black)20.0%
Color previews
#ccc01b text on a black background
contrast 11.12:1
Card sample
#ccc01b text on a white background
contrast 1.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccc01b;
Background color
Panel with #ccc01b background
background-color: #ccc01b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccc01b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 192, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 192, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc01b; background: linear-gradient(135deg, #ccc01b, #62CC1B);