tags:

views:

40

answers:

2

I have 2 colors #DCE7FA and #CADBF7. Want the intermediate color(a kind of Arithmetic mean).

Hexadecimal arithmetic median does not work.

How to proceed?

+2  A: 

Yes the normal hex median wont work.. !!
try spliting to to R, G , B and find individual medians..

r1 = DC ; r2 = CA  
g1 = E7 ; g2 = DB  
b1 = FA ; b2 = F7  

now find individual medians..

now,

r3 = (r1+r2)/2 = D3 ;  
g3 = E1  
b3 = F5  

now ur intermediate color = #D3E1F5..

echo
not good: seehttp://www.colortools.net/color_compare_colors.html visually `(#DCE7FA + #CADBF7) / 2 != #ABCDEF`
serhio
@seriho.. i gave an EXAMPLE on how to split to RGB and find individial medians,, now i took my time and calculated the actual values and re-posted.. check it now..
echo
and again : the median of colores SHOULD NOT be calculated as `(HexColor1 + HexColor2)/2` . Its calculated as the median of individual channels like i said in the answer.
echo
F8, not F5 :) thanks.
serhio
F8...! yeah!! typo!
echo
A: 

Found an online tool: http://www.colortools.net/color_combination.html

serhio
That combines (finds the actual `(HexColor1 + HexColor2)/2`), guess thats not you want.. This type of finding mean is not at all reccomended.. even in one channel (say grayscale) coloring, they make `(color1+color2)%255` [note they take the remainder with the maximum color.]
echo
I say the combination seems to work on this site. It's not `(hex1+hex2) / 2`...
serhio