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
- Enter R, G, B values (0–255) for your foreground color.
- Set the alpha value (0.0–1.0) representing the foreground opacity.
- Choose a background color using the color picker or enter its hex code.
- The tool applies the alpha compositing formula: out = alpha × fg + (1 – alpha) × bg.
- The resulting solid RGB values and hex code are displayed with a live color preview.
- Copy the result as rgb(), rgba(), or a HEX code with one click.
Use cases
- Flatten a semi-transparent design token to a solid color for export.
- Find the perceived color of an RGBA overlay on a white or dark background.
- Convert CSS rgba() colors to opaque rgb() equivalents for email clients that ignore transparency.
- Determine the solid fallback color for a translucent UI component.
- Generate print-safe solid colors from screen colors with alpha channels.
- Verify how a translucent layer will look over a specific brand background.
Frequently Asked Questions
Related tools
Last updated: 2026-05-28 ·
Reviewed by Nham Vu