#cccd46
a balanced, vivid yellow · cool · closest name: khaki
RGB
204, 205, 70
HSL
60°, 57%, 54%
CMYK
1, 0, 66, 20
Luminance
0.5694
Every format
| HEX | #cccd46 |
| RGB | rgb(204, 205, 70) |
| HSL | hsl(60, 57%, 54%) |
| CMYK | cmyk(1%, 0%, 66%, 20%) |
| LAB | lab(80.2 -16.7 64.2) |
| LCH | lch(80.2 66.3 104.6) |
| OKLCH | oklch(0.823 0.153 109.8) |
Copy-ready code
/* CSS */
color: #cccd46;
background-color: #cccd46;
/* Tailwind (arbitrary) */
class="text-[#cccd46] bg-[#cccd46]"
/* SCSS */
$brand: #cccd46;
/* SwiftUI */
Color(red: 0.800, green: 0.804, blue: 0.275)
/* Android */
Color.parseColor("#cccd46")Accessibility — WCAG contrast
Aa
#cccd46 on white: 1.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cccd46 on black: 12.39:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green80.4%
Blue27.5%
CMYK percentages
Cyan0.5%
Magenta0.0%
Yellow65.9%
Key (black)19.6%
Color previews
#cccd46 text on a black background
contrast 12.39:1
Card sample
#cccd46 text on a white background
contrast 1.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cccd46;
Background color
Panel with #cccd46 background
background-color: #cccd46;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cccd46;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 205, 70, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 205, 70, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccd46; background: linear-gradient(135deg, #cccd46, #72CD46);