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