#cac76c
a balanced, vivid yellow · cool · closest name: khaki
RGB
202, 199, 108
HSL
58°, 47%, 61%
CMYK
0, 2, 47, 21
Luminance
0.5449
Every format
| HEX | #cac76c |
| RGB | rgb(202, 199, 108) |
| HSL | hsl(58, 47%, 61%) |
| CMYK | cmyk(0%, 2%, 47%, 21%) |
| LAB | lab(78.8 -11.6 45.6) |
| LCH | lch(78.8 47.1 104.3) |
| OKLCH | oklch(0.813 0.114 107.0) |
Copy-ready code
/* CSS */
color: #cac76c;
background-color: #cac76c;
/* Tailwind (arbitrary) */
class="text-[#cac76c] bg-[#cac76c]"
/* SCSS */
$brand: #cac76c;
/* SwiftUI */
Color(red: 0.792, green: 0.780, blue: 0.424)
/* Android */
Color.parseColor("#cac76c")Accessibility — WCAG contrast
Aa
#cac76c on white: 1.77:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cac76c on black: 11.90:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.2%
Green78.0%
Blue42.4%
CMYK percentages
Cyan0.0%
Magenta1.5%
Yellow46.5%
Key (black)20.8%
Color previews
#cac76c text on a black background
contrast 11.90:1
Card sample
#cac76c text on a white background
contrast 1.77:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cac76c;
Background color
Panel with #cac76c background
background-color: #cac76c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cac76c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(202, 199, 108, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 199, 108, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cac76c; background: linear-gradient(135deg, #cac76c, #8ECA6C);