# Blending colors

**URL:** <https://forum.kirupa.com/t/blending-colors/70498>\
**Category:** programming\
**Created:** [November 14, 2004, 10:25pm UTC](https://forum.kirupa.com/t/blending-colors/70498 "2004-11-14T22:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LunarTears](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@LunarTears](https://forum.kirupa.com/u/LunarTears)\
**Post date:** [November 14, 2004, 10:25pm UTC](https://forum.kirupa.com/t/blending-colors/70498/1 "2004-11-14T22:25:53Z")

</div>

Could I enter two colors and blend them together?  
Maybe by taking the returned hex color or something?

i.e.

color1 = red;  
color2 = yellow;  
resultcolor = green;

would that work?

or would it end up doing this

color1 = red;  
color2 = yellow;  
resultcolor = rellow;  
(in other words, not work)
