问题
I work on .LESS and I am looking for a method how calculate from a hex color to another. For example: I have #000000, then I do some calculations (lighten, or darken, or mix...) somehow finally it will become #657177.
Let's say: @header-background: #000000; @tags: lighten(@header-background, 30%);
I have tried many percentage numbers, but I couldn't get exactly from #000000 to #657177.
Please give a hand. Thanks!
回答1:
Try using http://www.w3schools.com/colors/colors_picker.asp since you know what color you are looking for, and it can give you the percentage difference.
来源:https://stackoverflow.com/questions/35706592/hex-colors-how-to-calculate-from-1-color-to-another