Map from Google - French_Riviera

The climate of the French Riviera (Côte d'Azur), the French coastline that goes from Marseille to Menton (near the border with Italy), is Mediterranean, with mild and relatively rainy winters, and warm and sunny summers. Atlantic frontal systems pass quite often throughout the year, but especially from October to April, while in summer, in particular in July and August, they become rare. In winter, though rarely, there may be waves of cold, with snow on the coasts and frosts in inland areas. Typically the summer temperatures are acceptable, although sometimes there may be hot periods, with highs about 35 °C (95 °F), but fortunately sea breezes blow along the coast.
The western part is colder than the eastern one, especially in winter, because it is subject to a cold and violent wind, the Mistral, which blows for a hundred days per year, and is channeled through the Rhone Valley. So the winter in Marseille is not so mild: the average temperature in January is 6.5 °C (43.5 °F), and from November to March cold and windy days can occur, followed by night frosts. Precipitation in this westernmost part of the French Riviera is not abundant: in Marseille it amounts to 600 millimetres (23.5 inches) per year, with a maximum in autumn and a minimum in summer.
Here are the average temperatures of Marseille.
Average temperatures - Marseille
Min (°C)345812151817151174
Max (°C)101114172125282724191411
Min (°F)373941465459646359524539
Max (°F)505257637077828175665752

In cities located at a certain distance from the coast, the climate becomes slightly continental, as you can see from the temperature of Aix-en Provence, about 20 kilometres (12 miles) north-east of Marseilles, where the average in January drops to 5.5 °C (42 °F).
Average temperatures - Aix-en-Provence
Min (°C)0035913161512932
Max (°C)121215182226313026211412
Min (°F)323237414855615954483736
Max (°F)545459647279888679705754

Proceeding eastwards from Marseille, and away from the mouth of the Rhone River, the climate becomes milder, while the rains become more abundant in autumn and winter; however, summer continues to be quite arid.
In Toulon, in the southernmost part of the coast, nearly 700 mm (27.5 in) of rain per year fall, with a peak in October and November of 90 mm (3.5 in) per month, and a minimum in July of just 10 mm (0.4 in). Here are the average temperatures.
Average temperatures - Toulon
Min (°C)557912161818161396
Max (°C)121315172125282825211613
Min (°F)414145485461646461554843
Max (°F)545559637077828277706155

Continuing east, in cities like Saint-Tropez, Cannes, Nice, the temperatures are similar. Here are the average temperatures in Nice.
Average temperatures - Nice
Min (°C)5681014172020171396
Max (°C)131315172024272724211614
Min (°F)414346505763686863554843
Max (°F)555559636875818175706157

In the eastern part of the coast, the rains increase a bit, exceeding 700 mm (27.5 in) per year, and reaching 800 mm (31.5 in) in Monte Carlo (in the Principality of Monaco). From late September to December, in some years the rains are plentiful.
Here are the average precipitation in Nice.
Average precipitation - Nice
Prec. (mm)70454070453510207213510595740
Prec. (in)

The sunshine duration on the French Riviera is good in summer, when the weather is usually fine, and decent in spring, especially in April and May, and again in September. In the rest of the year, ie in autumn and winter, there is a moderate amount of sunny days, but they alternate with cloudy and rainy days.
Sunshine - Nice
Sun (hours)567791011108654

Nice from above

On the French Riviera, the sea is never very warm, because it is cooled for several months every year by the Mistral (which, as we said, blows in the western part, but due to sea currents, cold waters reach a larger area). So in Marseille the sea temperature reaches a maximum of only 22 °C (72 °F) in August.
Here are the average sea temperatures in Marseille.
Sea temperature - Marseille
Sea (°C)131313141618212221181614
Sea (°F)555555576164707270646157

In the eastern part of the coast, the sea becomes a bit warmer in the summer months (about one degree Celsius), as you can see from the temperature of the sea at Cannes.
Sea temperature - Cannes
Sea (°C)131313141619222321191614
Sea (°F)555555576166727370666157

When to go

The best time for swimming and sun bathing on the French Riviera is the summer, from mid-June to August.

To visit cities, you can choose the months of May, June and the first half of September, to avoid the warmest months, bearing in mind that sometimes it can rain, during the passage of depressions or in the form of afternoon thunderstorm.