@ Shivam, I think it is due to dissolved organic materials because bacteria do not tint the water yellowish-green. Generally water rich in phytoplankton and other algae usually appears green.
Shallowness, the presence of suspended particles and dissolved organic matter and most importantly, high abundance of phytoplankton change the colour to greenish and yellowish depending of which group of microalgae are dominating.
It is the pollution caused by human waste (treated/untreated sewage) discharged into the sea. Its richness in phosphorous (among other macro and micronutrients) fosters the growth of microrganisms (algae, bacteria, cyanobacteria) that proliferate while removing oxygen in great quantity from the water, causing eutrophication. Is this phenomenon occurring with a lot of dead fish on the shore? In this case it is water pollution, otherwise it could be diatoms (protozoa) that stain the water with the colors you described.
This is due to the increase in the level of nutrients in the shore area; this is due to the discharge of sewage from cities. The results of eutrophication is the growth of algae which leads into yellowish-green coloration in these areas.
Generally, this type of phenomenon not seen in every coastal water of near cities. It's a localised activities which varies with place and topography of the ocean. Still, I agree and satisfied with the answer made by Dr. Biswas ma'am.
this might be due to the effluent of heavy metals,several nutrients and the response of phytoplankton to the condition from near by industry,flower culture,sewage treatment,agriculture, and other ditches.
If there are any particles suspended in the water, they will increase the scattering of light. In coastal areas, runoff from rivers, resuspension of sand and silt from the bottom by tides, waves and storms and a number of other substances can change the color of the near-shore waters. Some types of particles (in particular, the cells of phytoplankton, also referred to as algae) can also contain substances that absorb certain wavelengths of light, which alters its characteristics.