I got a few correct answer, the first one came from Akash Tayal from New Jersey. Well done! Am taking the liberty of reproducing his answer directly:
Out of total 8 permutations, There are 6 ways that the cap colors are split 2 of a kind and 1 of a kind. If the prisoners go with this bet, then anyone who sees 2 of the same color on the others’ head should guess the opposite color; the others should pass. 75% chance to be set. Also have put the answer on a video in more detail:
http://www.educreations.com/lesson/view/solution-to-puzzle-60/20992213/?s=uLGlM5&ref=link
Hope you enjoyed the puzzle!