The size of a molecule does not correlate with the color of a molecule.
Color depends upon which wavelengths of light are absorbed and which are transmitted by a molecule. Visible light typically ranges from around 390 to 700 nm. Light with a wavelength between approximately 635 to 700 nm appears red to the human eye. If we have a molecule that absorbs all visible light below 635 nm, the molecule will appear red; it absorbs all visible light except for the red wavelengths, hence only the red wavelengths will be reflected or transmitted and be available for the eye to detect.
What determines which wavelengths of light are absorbed by a molecule?
This is controlled by the energy separation (energy gap) between the highest energy orbital that contains an electron (the HOMO or highest occupied molecular orbital) and the lowest energy orbital that an electron can be promoted to (the LUMO or lowest unoccupied molecular orbital). If this energy gap falls in the visible range, then the molecule will appear colored to the eye when the molecule absorbs light at the wavelength that corresponds to the energy gap (e.g. when a photon is absorbed that promotes an electron from the HOMO to the LUMO) .
Molecules like 2,2-dimethylpropane contain only sigma bonds. The energy gap in typical sigma bonds is very large meaning that it takes a lot of energy to promote an electron from the HOMO to the LUMO. The amount of energy required typically falls in the ultra-violet region, outside the visible range; therefore these molecules are usually colorless since they transmit all visible wavelengths.
Molecules containing pi bonds have smaller HOMO-LUMO energy gaps than molecules with just sigma bonds. If there are enough pi bonds and they are conjugated then the gap can be small enough that light in the visible range can be absorbed and make the molecule appear colored. Here is a diagram showing how the energy gap decreases as we increase the length of our conjugated pi system.
Even with 1,3,5-hexatriene the light absorption at 258 nm is still outside the visible range, so the molecule will not be colored. But as we continue to extend the conjugation, eventually the molecule will absorb light around 400-500 nm, the blue light range. As the molecule absorbs blue light it will appear yellow. In addition to pi conjugation, certain substituents such as the nitro group and the carbonyl, to just name two, can also serve to extend the conjugation path in a molecule.
The molecule you asked about, penta-1,2,3,4-tetraene, looks roughly like this.
If we examine it closely, we'll notice that the orbitals really look like those in two distinct (orthogonal) 1,3-butadiene molecules. As the chart above shows, 1,3-butadiene does not absorb in the visible range. Nonetheless, because penta-1,2,3,4-tetraene does have an extended pi system it will have a smaller HOMO-LUMO gap than 2,2-dimethylpropane and will absorb light at longer ultra-violet wavelengths (lower energy) than 2,2-dimethylpropane.