How to get ship colour for 3D models?

Did you see this?

There is a part about extracting the textures and someone at the end posted how to get the colours too, even with a sample file.