#ccc77f
a balanced, soft yellow · cool · closest name: khaki
RGB
204, 199, 127
HSL
56°, 43%, 65%
CMYK
0, 3, 38, 20
Luminance
0.5522
Every format
| HEX | #ccc77f |
| RGB | rgb(204, 199, 127) |
| HSL | hsl(56, 43%, 65%) |
| CMYK | cmyk(0%, 3%, 38%, 20%) |
| LAB | lab(79.2 -8.8 36.7) |
| LCH | lch(79.2 37.7 103.6) |
| OKLCH | oklch(0.817 0.093 104.8) |
Copy-ready code
/* CSS */
color: #ccc77f;
background-color: #ccc77f;
/* Tailwind (arbitrary) */
class="text-[#ccc77f] bg-[#ccc77f]"
/* SCSS */
$brand: #ccc77f;
/* SwiftUI */
Color(red: 0.800, green: 0.780, blue: 0.498)
/* Android */
Color.parseColor("#ccc77f")Accessibility — WCAG contrast
Aa
#ccc77f on white: 1.74:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccc77f on black: 12.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green78.0%
Blue49.8%
CMYK percentages
Cyan0.0%
Magenta2.5%
Yellow37.7%
Key (black)20.0%
Color previews
#ccc77f text on a black background
contrast 12.04:1
Card sample
#ccc77f text on a white background
contrast 1.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccc77f;
Background color
Panel with #ccc77f background
background-color: #ccc77f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccc77f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 199, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 199, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc77f; background: linear-gradient(135deg, #ccc77f, #9ECC7F);