Soil
Dirt is a colloquial term, often used synonymously with ground, earth, and soil.
It is the stuff that makes up a large proportion of the natural solid surface on earth, both emersed (above the water surface) and immersed (below the water surface); thought the term "dirt" is usually reserved for the former as once the water quantity within dirt is sufficient to allow it to take on a sticky to runny texture, it's referred to as "mud".
Dirt is a mix of inorganic particles derived from bedrock (mother material) which are categorized into three groups according to their size (from largest to smallest): sand, silt, and clay. [1] The open spaces between particles are known as pores. These pores can - depending on environmental conditions - be filled with water, air (gases) or organic material (either dead of living) which can be micro- or macroscopic. A combination of these four elements (inorganic particles, organic material, air and water) is usually referred to as "soil". Soil is thus a living ecosystem in and of itself and an important factor in the health and sustainability of Earth's biome.

Colors
The color of a soil sample is based on what it is made of. This means that looking at the color can tell what chemicals might be in the soil.
In some cultures, black soil is seen as the most fertile. This is due to the high, microscopic organic content of the soil which oxidizes (known as humus), giving it a blackish colour.
Red soil often has a high clay content and comes mainly from the oxydization of ferrous particles, while beige or yellow dirt often includes higher levels of sand.
Grey soil with a very high clay content usually indicates poorly aerated, waterlogged soils and in that case is often accompanied by a foul smell akin to rotten eggs due to sulphur reducing bacteria thriving in anoxic conditions. It usually has less iron.
Green soil usually also has less iron, though it can also be because of some minerals. Yellow soils can have iron accumulation, though less oxygen. This color can also just be from minerals. White soils are usually found in places with salt.
Soil colors can be categorized with hue, saturation, and value.
Growing in Dirt
When talking about dirt, most are referring to topsoil, which is a mix of earth, tiny organisms, and necessary nutrients and elements for growing plants. Dirt needs to include water, anchorage, oxygen, and nutrients, like phosphorus, nitrogen, and other substances. [1]
Composition
Soil is mainly composed of approximately 45% mineral, 5% organic matter, 20-30% water, and 20-30% air. These percentages are only generalizations at best, as soils vary a lot. Soil contains elements minerals like iron and calcium, along with many others that can come from plants (like nitrogen). To make soil useful for cultivating, presence of rhizobium is very useful.