What is temperature?

According to Merriam-Webster, temperature is the degree of hotness or coldness measured on a definite scale. Temperature is often confused with heat, which is defined as the transfer of a type of energy.

Temperatures of nebulae

Nebulae are incredibly unique structures, however it can be difficult to think about how hot and cold they can be. In the center of most nebulae, the temperature is so hot that no solid matter can even exist there. The centers are made of clouds of gas. As you go out from the center, the temperature starts dropping rather quickly. Around the center, the temperatures are somewhere around 3,100 °F, which is when metals can be created. As you go further, the temperature lowers to about 1,300 °F, and this is when rocks will start to form. Even further out the temperatures drop to -100 °F, which is when ice forms. Space itself has a temperature of around -450 °F, which is cold enough to freeze just about anything.
Let's put it this way: around a nebula, there is a very small area where the temperature is somewhat decent. Besides the fact that no life could live there due to radiation and the fact that there are no planets in nebulae, lets say you are on an imaginary planet in the nicely temperature-d zone. We'll call the planet Leopold. All around Leopold are areas of either incredibly hot gas or insanely cold ice particles. This concept can be related to us (humans-from Earth, not humans from Leopold) very easily as shown in the picture below. (Click on picture for source).



University Physics with Modern Physics by Bauer and Westfall
The Cosmic Perspective Edition 5 by Bennett, Donahue, Schneider, and Voit
Merriam-Webster  ||  The Solar Nebula Hypothesis