Alpha Compositing Calculator

Composite a translucent foreground colour over a background.

Scope: Uses straight-alpha sRGB channel arithmetic for one foreground-over-background calculation and does not render a preview.

Workbench

Inputs stay on this page.

Applies straight source-over arithmetic to encoded sRGB channels. Nothing is rendered.

How to use Alpha Compositing Calculator

  1. Fill in the fields:

    • Foreground colour.
    • Foreground alpha: 0 to 1.
    • Background colour.
    • Background alpha: 0 to 1.
  2. Press “Composite colours”.

  3. Copy the result, or download it as alpha-composite.json.

About this tool

Composite a translucent foreground colour over a background.

Applies straight source-over arithmetic to encoded sRGB channels. Nothing is rendered.