The planck assumes a theoretical blackbody object that absorbs all incoming electromagnetic radiation and emits radiation at all wavelengths, depending on its temperature. The spectral distribution mathematical function by Planck describes the intensity of blackbody radiation at different wavelengths for a given temperature.
Hence, blackbody radiation described by Planck's law is a theoretical construct, that is often used as an idealized model, but it is not perfectly applicable in real life situations, as most physical body not perfectly behaves like a blackbody. Real objects emit and reflect light in much more complex ways, with the properties of the object influencing the specific wavelengths of light that are emitted or reflected.
Although, this law is fundamental of statistical mechanics and solid foundation of modern understanding of the physical nature of thermal radiation. The Planck's law does not provide any means to quantify the radiations from intrinsic atomic properties.
We have to extend this law to relate the atomic absorption and emission of radiation to microscopic properties of atoms through quantum mechanics of energy transition of different atom levels and mode cavities. Different atoms and molecules have different electronic and vibrational energy levels, which means that they can absorb and emit radiation at different specific wavelengths.
The temperature of an atom or molecule also affects the wavelengths it emits. At high temperatures, the atoms and molecules have more kinetic energy, and are more likely to make transitions to higher energy levels, resulting in the emission of shorter wavelength radiation. At lower temperatures, the atoms and molecules have less kinetic energy and are more likely to make transitions to lower energy levels, resulting in the emission of longer wavelength radiation.
For example, hydrogen gas emits light primarily at a wavelength of 656 nm (in the red region of the spectrum) when it makes transitions from the n=3 energy level to the n=2 energy level. However, at a high enough temperature, hydrogen atoms may be excited to higher energy levels and will emit light at a different set of wavelengths. Similarly, each element and molecule may have their own unique set of emission spectra based on its energy level transitions.