Both! Purple coloring may be induced in flowering plants by lowering their nighttime temperatures, plants with the genetic disposition show much more color change.
There was an entry in the emerald cup this last year that was so close to a dark red I had to stare at it for some time to convince myself it was cannabis.