To provide an optical sensor, an electronic apparatus, etc. that suppress reduction of spectroscopic characteristics. The optical sensor includes a light receiving element, an optical filter 140 that transmits light having a specific wavelength of incident light with respect to a light receiving region of the light receiving element, and an angle limiting filter 120 that limits an incident angle of the incident light transmitted through the optical filter 140. Supposing that a limitation angle of the angle limiting filter 120 is ¸A, a height from an upper surface of the angle limiting filter 120 to an upper surface of the optical filter is RTP, and a distance from an end of the optical filter 140 to an end of an aperture of the angle limiting filter 120 in a plan view with respect to the upper surface of the angle limiting filter 120 is an overlap distance OV, tan -1 (OV/RTP) > ¸A is satisfied.