How to Mix Two RGB Colors by Ratio
Choose two HEX or RGB colors, then move the ratio slider. The result updates instantly using the selected percentage of Color 1 and the remaining percentage of Color 2.
Use the reverse calculator to solve for a missing color, the color mixer to blend two or three RGB colors by ratio, and the opposite-color result for a quick channel inversion.
Load a common RGB mix or reverse-color calculation.
Target color is unreachable. Showing closest possible match.
RGB channel inversion of the current .
The Reverse Calculator assumes that your target color is a weighted mix of one or more fixed colors and an unknown color. For the 2‑color mode it uses the model
target = fixed × R + unknown × (1 − R). With a known fixed color F, target color T and mixing ratio R (between 0 and 1), the required color C is solved channel‑by‑channel as
C = (T − F × R) / (1 − R).
In 3‑color mode the tool models the target as target = fixed1 × r1 + fixed2 × r2 + unknown × r3, where r3 = 1 − r1 − r2. It then solves the unknown color for each RGB channel using
C = (T − F1 × r1 − F2 × r2) / r3. If the calculation produces values slightly outside the 0–255 RGB range, the result is clamped back into 0–255 and shown as a "Closest Possible Match".
The Color Mixer mode does the forward calculation: result = color1 × R + color2 × (1 − R), again evaluated separately for the R, G and B channels. For both modes, the tool updates HEX and RGB values in real time and also searches the coated Pantone palette for the nearest color to the computed result.
Choose two HEX or RGB colors, then move the ratio slider. The result updates instantly using the selected percentage of Color 1 and the remaining percentage of Color 2.
Enter the fixed color, target color, and fixed-color ratio. The reverse calculator solves the missing RGB color needed to reach the target.
The opposite-color result inverts every RGB channel using 255 minus the channel value, producing an exact digital channel inversion.
This calculator uses RGB channel mixing for digital colors. Physical paint, ink, and pigment mixing can produce different results because they follow subtractive color behavior and material-specific properties.
Pick an exact HEX or RGB value from an uploaded image, then use it in this calculator.