#c2ba50
a balanced, vivid yellow · cool · closest name: khaki
RGB
194, 186, 80
HSL
56°, 48%, 54%
CMYK
0, 4, 59, 24
Luminance
0.4717
Every format
| HEX | #c2ba50 |
| RGB | rgb(194, 186, 80) |
| HSL | hsl(56, 48%, 54%) |
| CMYK | cmyk(0%, 4%, 59%, 24%) |
| LAB | lab(74.3 -10.6 53.5) |
| LCH | lch(74.3 54.6 101.2) |
| OKLCH | oklch(0.775 0.128 105.0) |
Copy-ready code
/* CSS */
color: #c2ba50;
background-color: #c2ba50;
/* Tailwind (arbitrary) */
class="text-[#c2ba50] bg-[#c2ba50]"
/* SCSS */
$brand: #c2ba50;
/* SwiftUI */
Color(red: 0.761, green: 0.729, blue: 0.314)
/* Android */
Color.parseColor("#c2ba50")Accessibility — WCAG contrast
Aa
#c2ba50 on white: 2.01:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c2ba50 on black: 10.43:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red76.1%
Green72.9%
Blue31.4%
CMYK percentages
Cyan0.0%
Magenta4.1%
Yellow58.8%
Key (black)23.9%
Color previews
#c2ba50 text on a black background
contrast 10.43:1
Card sample
#c2ba50 text on a white background
contrast 2.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c2ba50;
Background color
Panel with #c2ba50 background
background-color: #c2ba50;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c2ba50;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(194, 186, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 186, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2ba50; background: linear-gradient(135deg, #c2ba50, #7EC250);