Ancient Greek origin
In ancient Greek, hubris referred to actions that shamed and humiliated the victim for the pleasure or gratification of the abuser. The term had a strong sexual connotation, and the shame reflected upon the perpetrator as well.
Violations of the law against hubris included what might today be termed assault and battery; sexual crimes; or the theft of public or sacred property. Two well-known cases are found in the speeches of Demosthenes, a prominent statesman and orator in ancient Greece. These two examples occurred when first Midias punched Demosthenes in the face in the theatre (Against Midias), and second when (in Against Conon) a defendant allegedly assaulted a man and crowed over the victim. Yet another example of hubris appears in Aeschines' Against Timarchus, where the defendant, Timarchus, is accused of breaking the law of hubris by submitting himself to prostitution and anal intercourse. Aeschines brought this suit against Timarchus to bar him from the rights of political office and his case succeeded.
In ancient Athens, hubris was defined as the use of violence to shame the victim (this sense of hubris could also characterize rape). Aristotle defined hubris as shaming the victim, not because of anything that happened to the committer or might happen to the committer, but merely for that committer's own gratification:
to cause shame to the victim, not in order that anything may happen to you, nor because anything has happened to you, but merely for your own gratification. Hubris is not the requital of past injuries; this is revenge. As for the pleasure in hubris, its cause is this: naive men think that by ill-treating others they make their own superiority the greater.
Crucial to this definition are the ancient Greek concepts of honour (τιμή, timē) and shame (αἰδώς, aidōs). The concept of honour included not only the exaltation of the one receiving honour, but also the shaming of the one overcome by the act of hubris. This concept of honour is akin to a zero-sum game. Rush Rehm simplifies this definition of hubris to the contemporary concept of "insolence, contempt, and excessive violence".
The Greek word for sin, hamartia (ἁμαρτία), originally meant "error" in the ancient dialect, and so poets like Hesiod and Aeschylus used the word "hubris" to describe transgressions against the gods.  A common way that hubris was committed was when a mortal claimed to be better than a god in a particular skill or attribute. Claims like these were rarely left unpunished, and so Arachne, a talented young weaver, was transformed into a spider when she said that her skills exceeded those of the goddess Athena. Additional examples include Icarus, Phaethon, Salmoneus, Niobe, Cassiopeia, and Tereus.
These events were not limited to myth, and certain figures in history were considered to be have been punished for committing hubris through their arrogance. On such person was king Xerxes as portrayed in Aeschylus's play The Persians, and who allegedly threw chains to bind the Hellespont sea as punishment for daring to destroy his fleet.
What is common to all these examples is the breaching of limits, as the Greeks believed that the Fates (Μοῖραι) had assigned each being with a particular area of freedom, an area that even the gods could not breach. 
The goddess Hybris has been described as having "insolent encroachment upon the rights of others".