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