#c4b310
a dark, electric yellow · cool · closest name: gold
RGB
196, 179, 16
HSL
54°, 85%, 42%
CMYK
0, 9, 92, 23
Luminance
0.4401
Every format
| HEX | #c4b310 |
| RGB | rgb(196, 179, 16) |
| HSL | hsl(54, 85%, 42%) |
| CMYK | cmyk(0%, 9%, 92%, 23%) |
| LAB | lab(72.2 -8.9 72.3) |
| LCH | lch(72.2 72.8 97.0) |
| OKLCH | oklch(0.758 0.156 102.4) |
Copy-ready code
/* CSS */
color: #c4b310;
background-color: #c4b310;
/* Tailwind (arbitrary) */
class="text-[#c4b310] bg-[#c4b310]"
/* SCSS */
$brand: #c4b310;
/* SwiftUI */
Color(red: 0.769, green: 0.702, blue: 0.063)
/* Android */
Color.parseColor("#c4b310")Accessibility — WCAG contrast
Aa
#c4b310 on white: 2.14:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c4b310 on black: 9.80:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.9%
Green70.2%
Blue6.3%
CMYK percentages
Cyan0.0%
Magenta8.7%
Yellow91.8%
Key (black)23.1%
Color previews
#c4b310 text on a black background
contrast 9.80:1
Card sample
#c4b310 text on a white background
contrast 2.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c4b310;
Background color
Panel with #c4b310 background
background-color: #c4b310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c4b310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(196, 179, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 179, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c4b310; background: linear-gradient(135deg, #c4b310, #5DC410);