Screen turns on for a few seconds and then shuts off

My Mac has an weird issue. I boot it up and it shows colored strips on the screen for about 5 seconds. And then it shuts off and is completely black. Any suggestions ?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0