RGB color mixer

Blend two colors by a chosen percentage.

Graphics Stateless

Maximum input length per field: 62 Unicode code points. See the operation limits in the instructions.

Quick guide

Try it with your own data when you’re ready.

Try an example

You enter

First color (HEX)
#000
Second color (HEX)
#fff
Percentage of the second color
50

You get

HEX color
#808080
RGB color
rgb(128, 128, 128)
How it works & limits

Enter two opaque hex colors and the percentage of the second color, from 0 to 100. Channels are interpolated directly in encoded sRGB and rounded to the nearest integer, with halves rounded up.

This is not perceptual or linear-light blending. Example: black and white at 50 gives #808080.