#cccf22
a balanced, vivid yellow · cool · closest name: gold
RGB
204, 207, 34
HSL
61°, 72%, 47%
CMYK
1, 0, 84, 19
Luminance
0.5758
Every format
| HEX | #cccf22 |
| RGB | rgb(204, 207, 34) |
| HSL | hsl(61, 72%, 47%) |
| CMYK | cmyk(1%, 0%, 84%, 19%) |
| LAB | lab(80.5 -19.2 75.8) |
| LCH | lch(80.5 78.2 104.2) |
| OKLCH | oklch(0.825 0.174 110.8) |
Copy-ready code
/* CSS */
color: #cccf22;
background-color: #cccf22;
/* Tailwind (arbitrary) */
class="text-[#cccf22] bg-[#cccf22]"
/* SCSS */
$brand: #cccf22;
/* SwiftUI */
Color(red: 0.800, green: 0.812, blue: 0.133)
/* Android */
Color.parseColor("#cccf22")Accessibility — WCAG contrast
Aa
#cccf22 on white: 1.68:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cccf22 on black: 12.52:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green81.2%
Blue13.3%
CMYK percentages
Cyan1.4%
Magenta0.0%
Yellow83.6%
Key (black)18.8%
Color previews
#cccf22 text on a black background
contrast 12.52:1
Card sample
#cccf22 text on a white background
contrast 1.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cccf22;
Background color
Panel with #cccf22 background
background-color: #cccf22;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cccf22;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 207, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 207, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cccf22; background: linear-gradient(135deg, #cccf22, #59CF22);