#c0cc21
a balanced, vivid yellow · cool · closest name: gold
RGB
192, 204, 33
HSL
64°, 72%, 47%
CMYK
6, 0, 84, 20
Luminance
0.5450
Every format
| HEX | #c0cc21 |
| RGB | rgb(192, 204, 33) |
| HSL | hsl(64, 72%, 47%) |
| CMYK | cmyk(6%, 0%, 84%, 20%) |
| LAB | lab(78.8 -22.8 74.2) |
| LCH | lch(78.8 77.6 107.1) |
| OKLCH | oklch(0.809 0.175 114.0) |
Copy-ready code
/* CSS */
color: #c0cc21;
background-color: #c0cc21;
/* Tailwind (arbitrary) */
class="text-[#c0cc21] bg-[#c0cc21]"
/* SCSS */
$brand: #c0cc21;
/* SwiftUI */
Color(red: 0.753, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#c0cc21")Accessibility — WCAG contrast
Aa
#c0cc21 on white: 1.76:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c0cc21 on black: 11.90:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red75.3%
Green80.0%
Blue12.9%
CMYK percentages
Cyan5.9%
Magenta0.0%
Yellow83.8%
Key (black)20.0%
Color previews
#c0cc21 text on a black background
contrast 11.90:1
Card sample
#c0cc21 text on a white background
contrast 1.76:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c0cc21;
Background color
Panel with #c0cc21 background
background-color: #c0cc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c0cc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(192, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0cc21; background: linear-gradient(135deg, #c0cc21, #4ECC21);