AnsRioSmart tools. Clear answers.
Home / Web & design / Blend two HEX colors
Web & design

Blend two HEX colors

Blend two HEX colors with editable inputs, an explained method, a worked example and clearly stated output limits.

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Blend colors.

QUICK ANSWER

#808080

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Linearly interpolate each encoded sRGB channel and round to the nearest byte.

Input definitions

First HEX color
Enter the value in the labeled unit.
Second HEX color
Enter the value in the labeled unit.
Second color share (%)
Enter the value in the labeled unit.

A worked example

First HEX color
#000000
Second HEX color
#ffffff
Second color share (%)
50
#808080

Assumptions & limits

Opaque six-digit HEX colors; interpolation in encoded sRGB, no alpha compositing or color-profile conversion.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-11-18. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

Why is a 50% black and white blend #808080?

This tool averages encoded sRGB bytes and rounds the channels. Linear-light mixing produces a different, brighter midpoint; the method here is deliberately an encoded-channel blend.

Does generated CSS or a color result guarantee an accessible design?

No. Test the result in its real layout, including text contrast, browser zoom, focus and responsive behavior. A code generator only covers its documented property or color operation.

How does the Blend two HEX colors tool work?

Linearly interpolate each encoded sRGB channel and round to the nearest byte.

What are the assumptions and limits of Blend two HEX colors?

Opaque six-digit HEX colors; interpolation in encoded sRGB, no alpha compositing or color-profile conversion.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work