The lighted color at a point is a combination of the diffuse, specular, and ambient lighting contributions.
Each of these contributions is a product of the color of the light source, the color of the material, and the intensity of that type of lighting.
e.g.:
diffuse_color = diffuse_intensity *
light_diffuse_color *
material_diffuse_color