Solar panels use energy from sunlight rather than direct sunlight, which provides the best conditions because it spreads the least through clouds. Even the angle of the sun throughout the year can be greatly affected by the amount of atmosphere that light needs to pass through.

Dark, thick clouds will absorb more sunlight than thin white clouds, reducing the panel's output. So, even on rainy days, your panel will still work fine.