#ccaf1c
a balanced, electric yellow · cool · closest name: gold
RGB
204, 175, 28
HSL
50°, 76%, 46%
CMYK
0, 14, 86, 20
Luminance
0.4358
Every format
| HEX | #ccaf1c |
| RGB | rgb(204, 175, 28) |
| HSL | hsl(50, 76%, 46%) |
| CMYK | cmyk(0%, 14%, 86%, 20%) |
| LAB | lab(72.0 -3.0 70.1) |
| LCH | lch(72.0 70.2 92.5) |
| OKLCH | oklch(0.757 0.150 96.5) |
Copy-ready code
/* CSS */
color: #ccaf1c;
background-color: #ccaf1c;
/* Tailwind (arbitrary) */
class="text-[#ccaf1c] bg-[#ccaf1c]"
/* SCSS */
$brand: #ccaf1c;
/* SwiftUI */
Color(red: 0.800, green: 0.686, blue: 0.110)
/* Android */
Color.parseColor("#ccaf1c")Accessibility — WCAG contrast
Aa
#ccaf1c on white: 2.16:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccaf1c on black: 9.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green68.6%
Blue11.0%
CMYK percentages
Cyan0.0%
Magenta14.2%
Yellow86.3%
Key (black)20.0%
Color previews
#ccaf1c text on a black background
contrast 9.72:1
Card sample
#ccaf1c text on a white background
contrast 2.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccaf1c;
Background color
Panel with #ccaf1c background
background-color: #ccaf1c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccaf1c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 175, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 175, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccaf1c; background: linear-gradient(135deg, #ccaf1c, #74CC1C);