Physical insight into a material can be first gained by its color since the reflectance spectrum from an object reflects its microstructure and complex reflective indices. We here present a comprehensive overview of electrodynamics and optics related to reflectance spectra and color and provide an open-source Python code for simulating reflectance spectra and extracting color values. The validity and applicability of the code are demonstrated through comparative analysis with both literature and experimental data.