Transparent ARGB hex value

前端 未结 7 1993
天命终不由人
天命终不由人 2020-11-28 17:16

The colors in this table is all not transparent. I guess the value for the A is set to FF.

What is the code for transparency?

For

7条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 17:55

    Here is the table of % to hex values:

    Example: For 85% white, you would use #D9FFFFFF. Here 85% = "D9" & White = "FFFFFF"

    
    100% — FF
    95% — F2
    90% — E6
    
    85% — D9
    
    80% — CC
    75% — BF
    70% — B3
    65% — A6
    60% — 99
    55% — 8C
    50% — 80
    45% — 73
    40% — 66
    35% — 59
    30% — 4D
    25% — 40
    20% — 33
    15% — 26
    10% — 1A
    5% — 0D
    0% — 00
    

    How is it calculated?

    FF is number written in hex mode. That number represent 255 in decimal. For example, if you want 42% to calculate you need to find 42% of numbeer 255 and convert that number to hex. 255 * 0.42 ~= 107 107 to hex is "6B – maleta

提交回复
热议问题