#cbac0c
a dark, electric yellow · cool · closest name: gold
RGB
203, 172, 12
HSL
50°, 89%, 42%
CMYK
0, 15, 94, 20
Luminance
0.4223
Every format
| HEX | #cbac0c |
| RGB | rgb(203, 172, 12) |
| HSL | hsl(50, 89%, 42%) |
| CMYK | cmyk(0%, 15%, 94%, 20%) |
| LAB | lab(71.0 -2.2 72.2) |
| LCH | lch(71.0 72.2 91.7) |
| OKLCH | oklch(0.750 0.152 95.8) |
Copy-ready code
/* CSS */
color: #cbac0c;
background-color: #cbac0c;
/* Tailwind (arbitrary) */
class="text-[#cbac0c] bg-[#cbac0c]"
/* SCSS */
$brand: #cbac0c;
/* SwiftUI */
Color(red: 0.796, green: 0.675, blue: 0.047)
/* Android */
Color.parseColor("#cbac0c")Accessibility — WCAG contrast
Aa
#cbac0c on white: 2.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cbac0c on black: 9.45:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.6%
Green67.5%
Blue4.7%
CMYK percentages
Cyan0.0%
Magenta15.3%
Yellow94.1%
Key (black)20.4%
Color previews
#cbac0c text on a black background
contrast 9.45:1
Card sample
#cbac0c text on a white background
contrast 2.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cbac0c;
Background color
Panel with #cbac0c background
background-color: #cbac0c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cbac0c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(203, 172, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 172, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbac0c; background: linear-gradient(135deg, #cbac0c, #6BCB0C);