#ccba21
a balanced, vivid yellow · cool · closest name: gold
RGB
204, 186, 33
HSL
54°, 72%, 47%
CMYK
0, 9, 84, 20
Luminance
0.4806
Every format
| HEX | #ccba21 |
| RGB | rgb(204, 186, 33) |
| HSL | hsl(54, 72%, 47%) |
| CMYK | cmyk(0%, 9%, 84%, 20%) |
| LAB | lab(74.9 -8.6 71.3) |
| LCH | lch(74.9 71.8 96.9) |
| OKLCH | oklch(0.780 0.156 102.0) |
Copy-ready code
/* CSS */
color: #ccba21;
background-color: #ccba21;
/* Tailwind (arbitrary) */
class="text-[#ccba21] bg-[#ccba21]"
/* SCSS */
$brand: #ccba21;
/* SwiftUI */
Color(red: 0.800, green: 0.729, blue: 0.129)
/* Android */
Color.parseColor("#ccba21")Accessibility — WCAG contrast
Aa
#ccba21 on white: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccba21 on black: 10.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green72.9%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta8.8%
Yellow83.8%
Key (black)20.0%
Color previews
#ccba21 text on a black background
contrast 10.61:1
Card sample
#ccba21 text on a white background
contrast 1.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccba21;
Background color
Panel with #ccba21 background
background-color: #ccba21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccba21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccba21; background: linear-gradient(135deg, #ccba21, #6CCC21);