Color builder for 256-color terminal
With most Linux terminals now supporting 256 colors, a tool like this one is mighty useful in building the escape sequences. For off-line use, all code is available in GitHub repository, and all logic behind the calculations is explained in this Habrahabr post (albeit, in Russian).