Hex Colors - How to Calculate from 1 Color to Another

本小妞迷上赌 提交于 2019-12-12 02:54:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!