#c4af50
a balanced, vivid yellow · cool · closest name: khaki
RGB
196, 175, 80
HSL
49°, 50%, 54%
CMYK
0, 11, 59, 23
Luminance
0.4297
Every format
| HEX | #c4af50 |
| RGB | rgb(196, 175, 80) |
| HSL | hsl(49, 50%, 54%) |
| CMYK | cmyk(0%, 11%, 59%, 23%) |
| LAB | lab(71.5 -4.1 50.5) |
| LCH | lch(71.5 50.6 94.6) |
| OKLCH | oklch(0.753 0.118 97.0) |
Copy-ready code
/* CSS */
color: #c4af50;
background-color: #c4af50;
/* Tailwind (arbitrary) */
class="text-[#c4af50] bg-[#c4af50]"
/* SCSS */
$brand: #c4af50;
/* SwiftUI */
Color(red: 0.769, green: 0.686, blue: 0.314)
/* Android */
Color.parseColor("#c4af50")Accessibility — WCAG contrast
Aa
#c4af50 on white: 2.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c4af50 on black: 9.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.9%
Green68.6%
Blue31.4%
CMYK percentages
Cyan0.0%
Magenta10.7%
Yellow59.2%
Key (black)23.1%
Color previews
#c4af50 text on a black background
contrast 9.59:1
Card sample
#c4af50 text on a white background
contrast 2.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c4af50;
Background color
Panel with #c4af50 background
background-color: #c4af50;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c4af50;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(196, 175, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 175, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c4af50; background: linear-gradient(135deg, #c4af50, #8CC450);