Hex representation of a color with alpha channel?

前端 未结 5 2121
情书的邮戳
情书的邮戳 2020-11-27 16:23

Is there a W3 or any other noteworthy standard on how to represent a color (including alpha channel) in hex format?

Is it #RGBA or #ARGB?

5条回答
  •  孤城傲影
    2020-11-27 17:00

    You could try putting the hex color into the color picker of GIMP or photo shop to get the RGB value and then using the alpha value. eg. red is #FF0000 or rgb(255,0,0) if you want red with an alpha value of .5 then rgba(255,0,0,.5).

    Maybe not exactly what you wanted but hopefully helps.

提交回复
热议问题