Tools38

Flatten transparency

Alpha to Solid Converter.

Convert transparent RGBA colors over a background into exact opaque HEX, or solve what alpha reproduces any tint.

Active palette
Opaque Solid HEX #F6DBE3
Opaque Solid RGB rgb(246, 219, 227)
Equivalent RGBA rgba(200, 30, 81, 0.16)
8-Digit HEX8 #C81E5129

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to convert transparent RGBA to a solid HEX color Read the guide

Flatten transparent RGBA colors over any background into opaque HEX—or solve alpha

Semi-transparent rgba() borders, badges, and sticky headers often bleed unwanted colors when elements scroll underneath. Compute the exact 100% opaque solid HEX equivalent over any backdrop, or solve the exact alpha % needed to match a solid design tint.

Exact Porter-Duff source-over compositing and least-squares inverse alpha solver.
QUICK VIDEO TUTORIAL How to convert transparent RGBA to a solid HEX color Flatten alpha colors over any background—or solve the exact opacity for a tint. Watch the video

How to convert transparent RGBA to a solid HEX color

Eliminate alpha bleed in UI components

Sticky Headers & Modals

RGBA → 100% Opaque HEX

Keep the exact visual tint of rgba() while preventing scrolling text from bleeding through.

Design Token Cleanup

Tint → Find Alpha solver

Reverse-engineer what opacity percentage of your brand color reproduces a hardcoded tint.

All Formats

HEX, RGB, RGBA & HEX8

Copy 6-digit solid HEX, solid RGB, CSS rgba(), or 8-digit #RRGGBBAA codes in one click.

Key capabilities

Porter-Duff & inverse alpha math

Flattens RGBA over any backdrop into opaque HEX and solves exact opacity for target tints.

Zero bleed

Side-by-side proof confirms 0.0 ΔE visual match between RGBA and solid HEX.

6 live bidirectional color spaces

Converts simultaneously between HEX, OKLCH, RGB, HSL, D65 CIELAB, and process CMYK.

Omnibox parsing

Type or paste in any card—or drag perceptual OKLCH sliders—to update all six spaces in real time.

WCAG 2.1 AA/AAA + APCA Lc

Evaluates both standard luminance contrast ratios and polarity-aware perceptual APCA scores.

Dual scoring

Check normal body copy (4.5:1 AA, 7:1 AAA), large headlines (3:1), and perceptual Lc values side by side.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Foreground HEX, Backdrop HEX, and Opacity % (or Target Tint)
Outputs & exports
100% Opaque Solid HEX, RGB, RGBA, HEX8 & Solved Alpha %

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
What formula converts RGBA over a background to solid RGB?

Each sRGB channel is composited as Out = round(Foreground × alpha + Background × (1 − alpha)), producing a solid color visually identical over that backdrop.

Can every solid color be reproduced as an alpha of my brand color?

Only colors that lie along the straight sRGB segment between your foreground and backdrop can be matched at ΔE 0.0; otherwise the solver finds the closest least-squares opacity.

Why replace semi-transparent RGBA colors with solid HEX in UI?

Opaque HEX values prevent sticky headers, overlapping borders, and z-index layers from bleeding unexpected background colors through translucent fills.

How does the Reverse Alpha Solver mode work?

Give it a base ink (like #0F172A), a surface (#FFFFFF), and a desired solid gray (#64748B), and it computes the exact rgba() alpha percentage that matches closest.

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina