#ccf40c
a balanced, electric green · cool · closest name: yellow
RGB
204, 244, 12
HSL
70°, 91%, 50%
CMYK
16, 0, 95, 4
Luminance
0.7757
Every format
| HEX | #ccf40c |
| RGB | rgb(204, 244, 12) |
| HSL | hsl(70, 91%, 50%) |
| CMYK | cmyk(16%, 0%, 95%, 4%) |
| LAB | lab(90.6 -37.0 87.1) |
| LCH | lch(90.6 94.6 113.0) |
| OKLCH | oklch(0.906 0.216 121.0) |
Copy-ready code
/* CSS */
color: #ccf40c;
background-color: #ccf40c;
/* Tailwind (arbitrary) */
class="text-[#ccf40c] bg-[#ccf40c]"
/* SCSS */
$brand: #ccf40c;
/* SwiftUI */
Color(red: 0.800, green: 0.957, blue: 0.047)
/* Android */
Color.parseColor("#ccf40c")Accessibility — WCAG contrast
Aa
#ccf40c on white: 1.27:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccf40c on black: 16.51:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green95.7%
Blue4.7%
CMYK percentages
Cyan16.4%
Magenta0.0%
Yellow95.1%
Key (black)4.3%
Color previews
#ccf40c text on a black background
contrast 16.51:1
Card sample
#ccf40c text on a white background
contrast 1.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccf40c;
Background color
Panel with #ccf40c background
background-color: #ccf40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccf40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 244, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 244, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccf40c; background: linear-gradient(135deg, #ccf40c, #32F40C);