Tag Archives: Convert RGB to RGBA over white

Convert RGB to RGBA over white

Question I have a hex color, e.g. #F4F8FB (or rgb(244, 248, 251)) that I want converted into an as-transparent-as-possible rgba color (when displayed over white). Make sense? I’m looking for an algorithm, or at least idea of an algorithm for how to do so. For Example: rgb( 128, 128, 255 ) –> rgba( 0, 0,… Read More »