added color generation according to W3 recommendations

http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html - description

http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G18 - formulas for contrast checking

Generation formulas could be shortened, but they are more readable this way.