#ccab49
a balanced, vivid yellow · warm · closest name: peru
RGB
204, 171, 73
HSL
45°, 56%, 54%
CMYK
0, 16, 64, 20
Luminance
0.4244
Every format
| HEX | #ccab49 |
| RGB | rgb(204, 171, 73) |
| HSL | hsl(45, 56%, 54%) |
| CMYK | cmyk(0%, 16%, 64%, 20%) |
| LAB | lab(71.2 1.0 53.5) |
| LCH | lch(71.2 53.5 88.9) |
| OKLCH | oklch(0.752 0.122 90.5) |
Copy-ready code
/* CSS */
color: #ccab49;
background-color: #ccab49;
/* Tailwind (arbitrary) */
class="text-[#ccab49] bg-[#ccab49]"
/* SCSS */
$brand: #ccab49;
/* SwiftUI */
Color(red: 0.800, green: 0.671, blue: 0.286)
/* Android */
Color.parseColor("#ccab49")Accessibility — WCAG contrast
Aa
#ccab49 on white: 2.21:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccab49 on black: 9.49:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green67.1%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta16.2%
Yellow64.2%
Key (black)20.0%
Color previews
#ccab49 text on a black background
contrast 9.49:1
Card sample
#ccab49 text on a white background
contrast 2.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccab49;
Background color
Panel with #ccab49 background
background-color: #ccab49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccab49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 171, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 171, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccab49; background: linear-gradient(135deg, #ccab49, #96CC49);