"Laws affecting lesbian, gay, bisexual, and transgender (LGBT) people vary greatly by country or territory"
Laws affecting lesbian, gay, bisexual, and transgender (LGBT) people vary greatly by country or territory, everything from legal recognition of same-sex marriage or other types of partnerships, to the death penalty as punishment for same-sex romantic/sexual activity or identity.
In 5 of the listed countries below, Iran, Saudi Arabia, Yemen, Mauritania, Sudan, plus parts of Nigeria and Somalia, homosexuality is punishable by death. Additionally, there are a number of countries where homosexuality is not illegal but laws exist that seriously restrict homosexuality, eg. Russia, which enacted a law that prohibits homosexual propaganda.
The original rainbow flag, called the Freedom Flag, was devised by Gilbert Baker in 1978. The design has undergone several revisions since its debut with 8 colored stripes, and today the most common variant consists of 6 stripes: red, orange, yellow, green, blue, and violet.
Picture of Gilbert Baker's original Freedom Flag showing the meaning of the 8 colors.