RGBA to RGB Converter

Enter RGBA values and a background color to get the equivalent opaque RGB result via alpha compositing.

Foreground RGBA Input

Sets R, G, B channels
Presets:

Composited RGB Result

Foreground (RGBA)
rgba(99, 102, 241, 0.60)
Result (RGB)
rgb(168, 169, 244)

Formula: out = α × fg + (1 − α) × bg  —  applied per channel (R, G, B).

Copied!

Summary

Enter RGBA values and a background color to get the equivalent opaque RGB result via alpha compositing.

How it works

  1. Enter R, G, B values (0–255) for your foreground color.
  2. Set the alpha value (0.0–1.0) representing the foreground opacity.
  3. Choose a background color using the color picker or enter its hex code.
  4. The tool applies the alpha compositing formula: out = alpha × fg + (1 – alpha) × bg.
  5. The resulting solid RGB values and hex code are displayed with a live color preview.
  6. Copy the result as rgb(), rgba(), or a HEX code with one click.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu