the colour is in a database somewhere at the factory, but it can not be determined from a position in the VIN.
Your VIN decoder has access to the database and can see the colour it left the factory in, and the options it had and so on. Stuff you can only find out if you have access to the database.