This JavaScript project allows anyone to easily combine any two hex colors in any desired ratio.
Download hexMixer.js and include it on any page you want to mix two hex colors.
<script type="text/javascript" src="./hexMixer.js"></script>
<script>
document.getElementById("mydiv").style.backgroundColor = HexMixer('#FFFFFF', '#000000', 50);
</script>
The first two parameters must be two hex color codes (with or without the pound sign), and the third must be a percent from 0 to 100.
A live demo can be found at http://dbcoding.com/HexColorMixer
Devon Bernard