Map from Google - French_Riviera

The climate of French Riviera, the coastal French area that goes from Marseille to Menton (near the border with Italy), is Mediterranean, with relatively mild and rainy winters, and warm, sunny summers. Atlantic frontal systems pass quite often throughout the year, but especially from October to April. 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, but fortunately sea breezes blow along the coast. On other occasions, we can not exclude the passage of some Atlantic depressions even in summer.
The western part is colder than the east, especially in winter, because it is subject to a cold and impetuous wind, the Mistral, which blows a hundred days a year, and is channeled through the Rhone Valley. So winter in Marseille is quite cold: the average temperature in January is 6.5 °C, and from November to March cold and windy days are possible, which can be followed by frosts. Precipitation in this westernmost part is not abundant: in Marseille about 600 millimetres of rain per year fall, with a maximum in autumn and a minimum in summer.
Here are the average temperatures of Marseille.
Marseille average temperatures
Marseille J F M A M J J A S O N D
Min (°C) 3 4 5 8 12 15 18 17 15 11 7 4
Max (°C) 10 11 14 17 21 25 28 27 24 19 14 11

In cities located at a certain distance from the coast, the climate is slightly continental, as you can see from the temperature of Aix-en Provence, about 20 kilometres north-east of Marseilles, where the average in January drops to 5.5 °C.
Aix en Provence average temperatures
Aix-en Prov. J F M A M J J A S O N D
Min (°C) 0 0 3 5 9 13 16 15 12 9 3 2
Max (°C) 12 12 15 18 22 26 31 30 26 21 14 12

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; in summer however it continues to rain a little.
In Toulon, in the southernmost part of the coast, nearly 700 mm of rain per year fall, with a peak in October and November of 90 mm per month, and a minimum in July of just 10 mm. Here are the average temperatures.
Toulon average temperatures
Toulon J F M A M J J A S O N D
Min (°C) 5 5 7 9 12 16 18 18 16 13 9 6
Max (°C) 12 13 15 17 21 25 28 28 25 21 16 13

Continuing east, in cities like Saint-Tropez, Cannes, Nice, the temperatures are similar. Here are the average temperatures in Nice.
Nice average temperatures
Nice J F M A M J J A S O N D
Min (°C) 5 6 8 10 14 17 20 20 17 13 9 6
Max (°C) 13 13 15 17 20 24 27 27 24 21 16 14

The rains increase a bit, exceeding 700 mm per year, and reaching 800 mm in Monte Carlo. From late September to December, in some years the rains are plentiful.
Here are the average precipitation in Nice.
Average precipitation Nice
Nice J F M A M J J A S O N D Year
Prec. (mm) 70 45 40 70 45 35 10 20 70 135 105 95 730
Days 6 5 5 7 5 4 2 2 5 7 7 6 61

The sunshine duration on the French Riviera is good in the summer, when the weather is usually nice, 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's no shortage of sunny days, but they alternate with cloudy and rainy days.

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 obviously blows in the western part, but due to sea currents, cold waters expand in a larger area). So in Marseille the sea temperature reaches a maximum of 22 °C in August.
Here are the average sea temperatures in Marseille.
Sea temperature Marseille
Marseille J F M A M J J A S O N D
Sea (°C) 13 13 13 14 16 18 21 22 21 18 16 14

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 in Cannes.
Sea temperature Cannes
Cannes J F M A M J J A S O N D
Sea (°C) 13 13 13 14 16 19 22 23 21 19 16 14

When to go

The best time for beach life on the French Riviera is the summer, from mid-June to August.

If you want 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.