Free online tools

Alpha Color Blend Calculator

Find the actual color produced when a transparent foreground sits on a background. Use hex colors with or without alpha and an optional foreground opacity.

Enter your values

Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.

Eight-digit hex can represent a partially transparent background.

This multiplies any alpha already in the foreground color.

This tool processes your input in your browser.

Result

Composite the foreground over the background

The calculator uses normal source-over compositing on sRGB channel values. The foreground contributes in proportion to its alpha. The background contribution is reduced by the portion covered by the foreground.

Read the combined opacity

If both layers have transparency, the output may still be transparent. The final alpha appears in the CSS rgb() value and in eight-digit hex where needed. Hex channels are rounded to byte values.

Frequently asked questions

What happens with a fully transparent foreground?

The background comes through unchanged, except that two fully transparent layers have no visible color.

Does this implement multiply or screen blending?

The tool calculates normal source-over compositing. Other blend modes change the color formula before compositing.